An unknown variable

Post Reply
masoudkavoosi
User
User
Posts: 5
Joined: 5 years ago

An unknown variable

Post by masoudkavoosi »

Hi all,

I encode a mathematical model in GAMS but it returns some errors which I could not solve them.

Would you please run my code and see what is the problem?

Thank you

Masoud
Attachments
ASAEA_GAMS_MD.gms
(5.67 KiB) Downloaded 497 times
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: An unknown variable

Post by Renger »

Hi

When I run your model, I get the following errors:
**** $65,56,65,56,65,56,256
**** 56 Endogenous operands for * not allowed in linear models
**** 65 Discrete variables can only appear in MIP, RMIP, MINLP
**** RMINLP MIQCP or RMIQCP MPEC RMPEC problems.
**** 256 Error(s) in analyzing solve statement. More detail appears
**** Below the solve statement above

As you can see, you have a MINLP (multiplication of variables) and not an LP problem. So you should change this in your solve statement accordingly.

Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
masoudkavoosi
User
User
Posts: 5
Joined: 5 years ago

Re: An unknown variable

Post by masoudkavoosi »

Dear Renger,

Thank you so much, you really saved a lot of my time!

Cheers

Masoud
Post Reply