i need to loop a constraint

equations
;under actual undertime cost
;((const1 … loop(m,sum(i, (x(i,m)*Dtot(i))-C(m) =l= K(m

?how can i do such a thing on gams … i know it’s not allowed to loop an equation … but i don’t know how to do it … can any1 help


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 http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Hi,

You need to define eq const1 over the set m:

const1(m)… sum(i,x(i,m)*Dtot(i)) - C(m) =L= K(m)


Cheers,
Pedro

On 20 Feb 2013, at 21:08, “totodwiri@gmail.com” wrote:

equations
;under actual undertime cost
;((const1 … loop(m,sum(i, (x(i,m)*Dtot(i))-C(m) =l= K(m

?how can i do such a thing on gams … i know it’s not allowed to loop an equation … but i don’t know how to do it … can any1 help


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 http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


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 http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

بتاريخ الأربعاء، 20 فبراير، 2013 UTC+2 7:48:36 م، كتب toto...@gmail.com:

equations
;under actual undertime cost
;((under … loop(m,sum(i, (x(i,m)*Dtot(i))-C(m) =l= K(m

?how can i do such a thing on gams … i know it’s not allowed to loop an equation … but i don’t know how to do it … can any1 help


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 http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Instead of taking the loop, you should try the equation by creating the equation vaild for all m.

const1(m) …sum(i, (x(i,m)*Dtot(i))-C(m) =l= K(m);

The purpose of loop for all m can be get in gams if you put the equation valid for allm.

Thanks,
Dharmender Y.


On Wed, Feb 20, 2013 at 11:18 PM, wrote:

equations
;under actual undertime cost
;((const1 … loop(m,sum(i, (x(i,m)*Dtot(i))-C(m) =l= K(m

?how can i do such a thing on gams … i know it’s not allowed to loop an equation … but i don’t know how to do it … can any1 help


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 http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



\

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 http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

thank you very much … you really helped me alot :slight_smile:


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 http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\