I had defined a constant number as a multiple of a variable in a summation equation. After running the model, on checking the equation tab, I find that the constant value changes for every expanded term and thus resulting in wrong results.
If Objective.. profit =e= sum(c, x(c)*10000) has been defined, when the code is run, in the equation tab, i see the equation expanded as
I have no idea how a defined constant 10000 changes its value when the code is run.
Anybody with any idea about this, please help.
Problems with syntax of GAMS
1 post • Page 1 of 1