Hi every one

I have a q with GAMS

I need to introduce the set tw(i) as in this sample:

set i/1*3/,

parameters tl(i)

/1 3

2 1

3 5/,

tu(i)

/1 15

2 12

3 16/;

set tw(i) /tl(i)*tu(i)/; *Error and problem

I want tw sets for each i so the result should be:

tw(1) from 3 to 15

tw(2) from 1 to 12

tw(3) from 5 to 16

I used to enter it manually but now I need to program it to sum over ‘tw’ the subset of ‘t’

con2(i);

con2(i)… sum(tw(i),del(i,t)) =e= 1;

I appreciate any help

Thanks and Regards

–

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.

To post to this group, send email to gamsworld@googlegroups.com.

Visit this group at https://groups.google.com/group/gamsworld.

For more options, visit https://groups.google.com/d/optout.