Page 1 of 1

Error in MIQCP sample model

Posted: Fri May 18, 2018 3:51 pm
by GamsUser80
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.

http://yetanothermathprogrammingconsult ... em-as.html

Regards,
Sean

Re: Error in MIQCP sample model

Posted: Fri May 18, 2018 5:28 pm
by bussieck
Sean,

**2 is real-power (rpower, see https://www.gams.com/latest/docs/UG_Par ... s_dmrpower) and requires NLP model type. For quadratic models you need to use power or sqr.

-Michael

Re: Error in MIQCP sample model

Posted: Sat May 19, 2018 1:29 am
by GamsUser80
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

Re: Error in MIQCP sample model

Posted: Sat May 19, 2018 2:38 am
by GamsUser80
All good now thanks.