Conditional statement

Problems with modeling
Post Reply
Amiraub90
User
User
Posts: 2
Joined: 5 years ago

Conditional statement

Post by Amiraub90 »

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: 639
Joined: 7 years ago

Re: Conditional statement

Post by Renger »

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: Read my blog on modeling at The lazy economist
Post Reply