how to code the Iteration-number

hello everyone,

I need help!
I want to let the GAMS show, how many iteration it is used to compute a result in code, can anybody help?
Thank you 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/d/optout.

You can use a counter in a “while” statement. Then, you can “display” the counter when the “while” condition is met. (take a look at an example in the GAMS users guide, in the section describing “while” statements

On Mon, Nov 9, 2015 at 9:10 AM, Yu Li wrote:

hello everyone,

I need help!
I want to let the GAMS show, how many iteration it is used to compute a result in code, can anybody help?
Thank you 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/d/optout.

\

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/d/optout.