--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
Hi, Paras, thanks but ...
(1) reset data <comma separated parameter list> appears to be a good idea in cases when there are not that many parameters to be treated ... nice would have been a feature reset data <exception list>, where exception list would always hold a variable with AMPL-time from run (i-1) ...
(2) Tried your second idea - and it didn't work: if I have a sequence reset/model<>/data<> within the loop, then the reset instantly destroys the loop-index (called run in my example).
Anyway, we'll find a solution - have a nice weekend.
On Fri, May 11, 2018 at 7:14 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
You can save the the run time of i-1 and calculate the run time of ith solve time. You should use reset data <comma separated parameter list>; instead of reset data; so that you could selectively reset the parameters. Alternatively, you could do reset; instead of reset data; and redefine your model and data and _ampl_time should give you the time of ith solve.
--
Paras Tiwari
am...@googlegroups.com