Hi GAMS friends,
I used $ifthen dollar conditions to activate the equation constraints. But when there are more than 2 such constraints, the code did not work as expected.
For example, I have two values to be satisfied (LCFSindex and carbonindex) in order to show the set. The example code is attached below. However, I cannot activate the display even if I have the right condition in the model (–LCFSindex=1.3 --carbonindex=0 ). Did I miss anything when put this dollar condition?
Thanks,
Jia
set a/1/
$ifthen (%LCFSindex%==1.3 and %carbonindex%==0)
display a
$endif