Error in MIQCP sample model

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

Error in MIQCP sample model

Post by GamsUser80 » 1 week ago

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 4 times

User avatar
bussieck
Moderator
Moderator
Posts: 107
Joined: 1 year ago

Re: Error in MIQCP sample model

Post by bussieck » 1 week ago

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: 11 months ago

Re: Error in MIQCP sample model

Post by GamsUser80 » 1 week ago

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: 11 months ago

Re: Error in MIQCP sample model

Post by GamsUser80 » 1 week ago

All good now thanks.

Post Reply