Search found 2 matches

by MarysPV
2 years ago
Forum: Syntax
Topic: problem with problem 149 - uncontrolled set entered as constant
Replies: 2
Views: 2002

Re: problem with problem 149 - uncontrolled set entered as constant

Hi, Have a look at: https://www.gams.com/33/docs/UG_Equations.html " Indexed Equations". You might need this addition: LOKAL (J) .. X(J)=E= X(J-1)+(N(J)- S(J)); By the way, in the display-statement referencing to indices is not needed. Also, when displaying variables you need to state the...
by MarysPV
2 years ago
Forum: Syntax
Topic: problem with problem 149 - uncontrolled set entered as constant
Replies: 2
Views: 2002

problem with problem 149 - uncontrolled set entered as constant

Hello, I have a problem solving problem 149. I believe that the algorithm cannot determine the initial value of X(J-1), which for J=1 is equal to 0, to which the difference value N(J) -S(J) is then added. Could I please have a question on how to fix this problem? OPTION NLP = CONOPT SET J index_prom...