I wrote a model in gams but it's infeasible. I suspect to this constraint, I think I didn't write it truly:
In my model:
c6(i,e)$(ord(e)<>0).. sum(f$(ord(f)<=ord(e)-1),z(i,f))=l=ord(e)*(1-(z(i,e)-z(i,e-1)));
i, e are sets
alias(e,f);
binary variable z(i,e);
Do you know how to write such summations in GAMS?