GAMS summation

123.PNG

Hi

sum(t$(t.val > 2 and t.val<6), Y(i,r,t)

or, if the set consists of strings /a1*a6/;:

sum(t$(ord(t) > 2 and ord(t)<6), Y(i,r,t);

Cheers
Renger

THANK YOU :smiley: :slight_smile: