Adding Constraints to a model inside a loop in GAMS
Adding Constraints to a model inside a loop in GAMS
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
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.
-
- User
- Posts: 1
- Joined: 6 years ago
Re: Adding Constraints to a model inside a loop in GAMS
Please share the answer.