Page 1 of 1
An unknown variable
Posted: Sat Jul 14, 2018 9:35 pm
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
Re: An unknown variable
Posted: Mon Jul 16, 2018 7:45 am
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
Re: An unknown variable
Posted: Mon Jul 16, 2018 2:46 pm
by masoudkavoosi
Dear Renger,
Thank you so much, you really saved a lot of my time!
Cheers
Masoud