Page 1 of 1

GAMS summation

Posted: Sat Jul 20, 2019 7:59 am
by rejinsr037
123.PNG
123.PNG (6.19 KiB) Viewed 3372 times

Re: GAMS summation

Posted: Sun Jul 21, 2019 3:40 pm
by Renger
Hi

Code: Select all

sum(t$(t.val > 2 and t.val<6), Y(i,r,t)
or, if the set consists of strings /a1*a6/;:

Code: Select all

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

Re: GAMS summation

Posted: Sun Jul 21, 2019 4:22 pm
by rejinsr037
THANK YOU :D :)