Hi there, i want to do the following thing, but i think i’m doing it in the wrong way.
so i want to perform a 24h simulation over, lets say, three days.
so i wrote
set
day /d1d3/
time /t1t24/
itday(day,time) /#day.#time/
oday(time)
dummy /x1*x5/
parameters
par(day,dummy,time)
…
variables
var(day, dummy,time)
…
equations
equ(day,dummy,time)
…
list of equations;
equ(day,dummy,time)$oday(time)…
…
alias(day,iter)
loop(iter,
oday(time) = itday(iter,time);
solve… ;
list of parameters used as new input for next day…
);
so i thought i would have obtained results as a form of d1 for first optimization, d2 for second and so on.
however, if i open the .lst file in the “equation” part i see both the calculation for day one and day two in both the list (see picture), that is not what i wanted to obtain.
any suggestion?