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
Error in MIQCP sample model
-
- User
- Posts: 6
- Joined: 6 years ago
Error in MIQCP sample model
- Attachments
-
- MIQCP Sample-Erwin.gms
- (2.03 KiB) Downloaded 221 times
Re: Error in MIQCP sample model
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
**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
-
- User
- Posts: 6
- Joined: 6 years ago
Re: Error in MIQCP sample model
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
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
-
- User
- Posts: 6
- Joined: 6 years ago
Re: Error in MIQCP sample model
All good now thanks.