[AMPL 24794] max_iter as a parameter

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

An answer was posted in the new AMPL user forum:
https://discuss.ampl.com/t/max-iter-as-a-parameter/735