## Dear all,

How can I express the formulation: sum(a,sum(t, t*x(a,t)));*

a is a set such as /13/; x is a variable.

but t is really not a set, it is concerned with a. Such as if a=1, then t is in the [1,10], if a =2 is in the zone [5, 20], if a=3, t is in the zone [10,30].

The formualtion should be expanded as follow: x(1,1)+2*x(1,2)+…10*x(1,10) + 5*x(2,5)+6*x(2,6)+… 10*x(3,10)+11*x(3,11)+…+30*x(3,30).

How can write the equation in GAMS in a general way?

\

a is a set such as /1

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

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.