I receive an error message for the CONSTRAINT(INT) as follows :
CONSTRAINT(INT).. SUM(JNT,SAM(INT,JNT)) =E= SUM(JNT,SAM(JNT,INT));
The error message is :
')' expected .
Where is the problem ?
I attach the error message and the whole program
Error message on constraint
Re: Error message on constraint
Hii
It is in the constraint just above:
The *-sign is in the first lne, so Gams assumes that it is a comment and not a mutitplcation. Add one space and all is fine.
(you also see this in your editor as the text is greyed out).
Cheers
Renger
It is in the constraint just above:
Code: Select all
OPTIMIZE.. OPT =E= SUM((INT,JNT)$(SAM0(INT,JNT) NE 0),(SAM(INT,JNT))
*(LOG(SAM(INT,JNT)+delta)-LOG(SAM0(INT,JNT)+delta)));
(you also see this in your editor as the text is greyed out).
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Re: Error message on constraint
Thank you for your response.
The error is fixed but I didn't get the solution beacause of restrictions of my licence!!
The error is fixed but I didn't get the solution beacause of restrictions of my licence!!
Re: Error message on constraint
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Enjoy modeling even more: Read my blog on modeling at The lazy economist