Hi
I’m trying to model the below picture in gams:
and the code that I used is something like:
if(
off_time(j,k) <= a +b,
Cu(j,k)=e=hot(j);
elseif off_time(j,k) > a+ b,
Cu(j,k)=e=cool(j);
);
but it gives me many errors.
in y code Cu(j,k) and off_time(j,k) are both positive variables
and “a”, “b”, “hot(j)” and “cool(j)” are fixed value which are taken from a table.
so the question is how can I use the variable “off_time(j,k)” in a conditional statment ???
I would greatly appreciate any assistance or advice you could offer me.