Page 1 of 1

Adding Constraints to a model inside a loop in GAMS

Posted: Tue Feb 11, 2014 3:39 pm
by Archiver

Hi,

According to the GAMS manual, one cannot make declarations or define equations inside a loop.

I need to add constraints to the mathematical model inside a loop and execute the solve statement. Is there any other way to add constraints to a model inside a loop?

Thanks in advance.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Adding Constraints to a model inside a loop in GAMS

Posted: Wed Feb 12, 2014 2:26 pm
by Archiver

Thanks a lot for your reply. It was exactly what I needed. Thanks again.

Best Regards,
VisValley

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Adding Constraints to a model inside a loop in GAMS

Posted: Mon Apr 02, 2018 11:29 pm
by rajatnareshseth
Please share the answer.