Ampl console output python

I am using amplpy module, and id like to remove all output to the console. How do i block this from showing :
Gurobi 11.0.0: bar:convtol = 1
mip:gap = 0.01
lim:time = 10
tech:outlev = 0
Gurobi 11.0.0: optimal solution; objective 55
its fine for 1, but im trying to run 100+ instances.
I didnt find anything online about similar questions.

Thanks in advance,

1 Like

Hi @icey,

Using the latest version of amplpy, you can do the following:


AMPL.solve() documentation