On Jun 22, 5:53 am, "Dr. P K Modi" <
pkmodip...@...> wrote:
> What variable name is assigned to iterations so that I can use the number of iterations in my solution report. It is displayed on the AMPL command window but I want to sava it on line.
I don't think the iteration count is returned separately to AMPL; it's
part of the solver's standard output. If you name your problem,
the .message suffix will contain whatever message the solver spat out
after solving the problem, which apparently includes the iteration
count. For instance,
# ... declaration of variables, constraints, objective here ...
problem P: ...; # name the problem and list its components
solve;
display P.message; # the iteration count should be in the message (?)
If you just want to write this to a file, you can write P.message. If
you need the iteration count within a script, good luck. AFAIK, AMPL
has no string parsing capabilities.
/Paul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to
ampl@...
To unsubscribe from this group, send email to
ampl-unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/ampl?hl=en-~----------~----~----~----~------~----~------~--~---