An unknown variable

Post Reply
masoudkavoosi
User
User
Posts: 3
Joined: 5 months ago

An unknown variable

Post by masoudkavoosi » 5 months ago

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

User avatar
Renger
Posts: 219
Joined: 2 years ago

Re: An unknown variable

Post by Renger » 4 months ago

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

masoudkavoosi
User
User
Posts: 3
Joined: 5 months ago

Re: An unknown variable

Post by masoudkavoosi » 4 months ago

Dear Renger,

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

Cheers

Masoud

Post Reply