Conditional statement
Conditional statement
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
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
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
Enjoy modeling even more: Read my blog on modeling at The lazy economist