Page 1 of 1

Re: understanding GAMS syntax in a mathematical way

Posted: Thu Jul 13, 2017 2:13 pm
by cladelpino
Hi, as you can read in https://www.gams.com/latest/docs/usergu ... arl/fx.htm, when doing x1.fx=9 actually:
... GAMS sets the lower and upper bound to that value.
This means x1.fx=9 is exactly doing x1.lo=9 and x1.up=9 in one statement.

Additionaly, this kind of statements (setting variable attributes) are executed in order. So when you do x1.lo=8 afterwards, you are "overwriting" the previous set of the lower bound.

Best regards!
Claudio

Re: understanding GAMS syntax in a mathematical way

Posted: Tue Aug 15, 2017 7:30 pm
by cladelpino
you mean a constraint defined ? ie

c1.. q=l=someValue;

q.up=someValue;

This would lead to models which are identical on the mathematical level, but NOT on the "software" (GAMS+solver) level.