Hi all,
I am new to GAMS.I am working on a formulation which has an equation as follows.
defplus(i,t)…
invuplussorted(i,t) =e= sum(m,yplus(i,m,t)*invuplus(m,t));
where i and m are alias,y(i,m,t) is a binary variable and invuplus(m,t) is a positive variable.invuplussorted(i,t) is the sorted version of invuplus(i,t), for which this equation comes in one of the steps.
While solving the model,GAMS creates wrong equations for the above equation as follows
defplus(101,0)… (0)*yplus(101,101,0) + (0)*yplus(101,102,0) + invuplussorted(101,0) + (0)*invuplus(101,0) + (0)*invuplus(102,0) =E= 0 ; (LHS = 0)
I tried moving index m to the last but the same problem occurs.I don know the cause of this.Could you help me out.?
i am solving it with Dicopt solver for minlp.
Thanks
Haresh
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/HwEfHSt2lTEJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.