Conditional statement

Problems with modeling
Post Reply
Amiraub90
User
User
Posts: 2
Joined: 6 months ago

Conditional statement

Post by Amiraub90 » 6 months ago

Hi Im new comer in gams I want to write this statment in parameters section but I have so many errors please help me. (if 0<srt<=0.4 then mcp=9,elseif 0.4<srt<0.6 then mcp=12,else 0.6<srt<0.8,mcp=15) srt is a variable that I define it.

User avatar
Renger
Posts: 306
Joined: 2 years ago

Re: Conditional statement

Post by Renger » 6 months ago

Hi
It would be helpful if you post the code that causes the errors. This would make it easier to point to the errors you are making.
Cheers
Renger
____________________________________
Enjoy modeling even more: The lazy economist

Post Reply