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
An unknown variable
-
- User
- Posts: 5
- Joined: 5 years ago
An unknown variable
- Attachments
-
- ASAEA_GAMS_MD.gms
- (5.67 KiB) Downloaded 682 times
Re: An unknown variable
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
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
Enjoy modeling even more: Read my blog on modeling at The lazy economist
-
- User
- Posts: 5
- Joined: 5 years ago
Re: An unknown variable
Dear Renger,
Thank you so much, you really saved a lot of my time!
Cheers
Masoud
Thank you so much, you really saved a lot of my time!
Cheers
Masoud