Adding Constraints to a model inside a loop in GAMS

Archive of Gamsworld Google Group
Post Reply
Archiver
User
User
Posts: 7876
Joined: 7 years ago

Adding Constraints to a model inside a loop in GAMS

Post 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.
Archiver
User
User
Posts: 7876
Joined: 7 years ago

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

Post 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.
rajatnareshseth
User
User
Posts: 1
Joined: 6 years ago

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

Post by rajatnareshseth »

Please share the answer.
Post Reply