- 123.PNG (6.19 KiB) Viewed 3451 times
GAMS summation Topic is solved
Re: GAMS summation
Hi
or, if the set consists of strings /a1*a6/;:
Cheers
Renger
Code: Select all
sum(t$(t.val > 2 and t.val<6), Y(i,r,t)
Code: Select all
sum(t$(ord(t) > 2 and ord(t)<6), Y(i,r,t);
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Enjoy modeling even more: Read my blog on modeling at The lazy economist