Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Part::pspec: Error' topicStudent Support Forum > General > Archives > "Part::pspec: Error"

Next Comment >Help | Reply To Topic
Author Comment/Response
Alessio
01/23/12 04:18am

Hi guys!

I am trying to acquire some experience in Mathematica and goal programming.
In the example shown in the Mathematica notebook I am trying to minimize the deviations in order to obtain the first row matrix value nearest to 10.

In this case I should obtain x11=5 , n1=5 and p1 =0 instead of i receive these errors:

Part::pspec: Part specification Subscript[x, 1,1] is neither an integer nor a list of integers. >>
Part::pspec: Part specification 0.6524678079740285` is neither an integer nor a list of integers. >>
NMinimize::bcons: The following constraints are not valid. >>

Does someone explain me why I obtain these errors??

Attachment: Untitled-22.nb, URL: ,

Subject (listing for 'Part::pspec: Error')
Author Date Posted
Part::pspec: Error Alessio 01/23/12 04:18am
Re: Part::pspec: Error Bill Simpson 01/24/12 12:54pm
Re: Part::pspec: Error Nasser M. Ab... 01/25/12 03:20am
Next Comment >Help | Reply To Topic