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.
For example,
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
10541x(First_Term_in_Set_C)+10324x(Second_Term_in_Set_C)
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.