max_iter as a parameter

30 views
Skip to first unread message

Manuel Álvarez Rodríguez

unread,
Sep 20, 2023, 5:14:24 PM9/20/23
to AMPL Modeling Language

In order to use a loop that keeps increasing the maximum number of iterations of the simplex method, is it possible to use a “max_iter” parameter like the following sentence?
   “option gurobi_options  $gurobi_options ' iterlim=max_iter';”

For example, defining max_iter like “param max_iter integer default 50;” gives an error (Gurobi 10.0.2: Invalid “max_iter” value for “lim:iter” option).

Thanks in advance,

Regards,
Manuel

AMPL Google Group

unread,
Sep 20, 2023, 5:33:16 PM9/20/23
to AMPL Modeling Language
An answer was posted in the new AMPL user forum:
https://discuss.ampl.com/t/max-iter-as-a-parameter/735


--
Robert Fourer

We're switching to a new, enhanced user forum.
Join it now at discuss.ampl.com.
{#HS:2367237889-119514#}
Reply all
Reply to author
Forward
0 new messages