Page 1 of 1

Conditional statement

Posted: Wed Jan 02, 2019 9:15 pm
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.

Re: Conditional statement

Posted: Thu Jan 03, 2019 10:14 am
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