It is basically a constraint over a binary variable 'h' as;
retro(i) .. sum(tc, h(i,tc)) =l= 1;
It should run only once (means 'sum of h < 1'). Summation is working but this summation appears in every loop for "t" which is not required.
It is basically a constraint over a binary variable 'h' as;
Hi Renger!
Code: Select all
if(h(i) = 1; h.FX(i) = 1;);
Hi Renger,Renger wrote: ↑1 month agoHi
I think you could do without t in H(i,t). Then, if in year x, H(i) becomes 1, you fix it to that level and it will stay like this in all t afterwards.CheersCode: Select all
if(h(i) = 1; h.FX(i) = 1;);
Renger