Error in MIQCP sample model

Problems with modeling
Post Reply
GamsUser80
User
User
Posts: 6
Joined: 6 years ago

Error in MIQCP sample model

Post 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
Attachments
MIQCP Sample-Erwin.gms
(2.03 KiB) Downloaded 204 times
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: Error in MIQCP sample model

Post 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
GamsUser80
User
User
Posts: 6
Joined: 6 years ago

Re: Error in MIQCP sample model

Post 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
GamsUser80
User
User
Posts: 6
Joined: 6 years ago

Re: Error in MIQCP sample model

Post by GamsUser80 »

All good now thanks.
Post Reply