Hi All,
I’m trying to code the below model. Can anyone tell me what’s wrong with my code? everything seems to be same with the instruction.
Regards,
Sean
MIQCP Sample-Erwin.gms (2.03 KB)
Hi All,
I’m trying to code the below model. Can anyone tell me what’s wrong with my code? everything seems to be same with the instruction.
Regards,
Sean
MIQCP Sample-Erwin.gms (2.03 KB)
Sean,
**2 is real-power (rpower, see https://www.gams.com/latest/docs/UG_Parameters.html#UG_Parameters_dmrpower) and requires NLP model type. For quadratic models you need to use power or sqr.
-Michael
Hi Michael,
Thanks for your point. It works now. Just a quick question on the same problem. I have difficulty in displaying variable Floc(j,c) (set c = {x,y} ). How can i display locations of floc.l as (j,x,y) as currently it just returns as floc(j,x) for floc(j,c) (and y is missed)?
Thanks in advance
Regards,
Sean
All good now thanks.