Storing the output Gap and other

289 views
Skip to first unread message

Baburam Rijal

unread,
Oct 19, 2017, 10:36:13 AM10/19/17
to AMPL Modeling Language
Hello AMPL users,
I am trying to store the MIP gap and time that come with an option outlev=1 in AMPL with Gurobi solver. Could you suggest to this inquiry please?

Thanks.

Baburam

Robert Fourer

unread,
Oct 20, 2017, 10:24:53 AM10/20/17
to am...@googlegroups.com
There isn't any option to have all the gap and timing detail from the Gurobi log returned to params in AMPL. Gurobi just writes the log to standard output. You'll need to redirect it to a file with a command like "solve >gurobi.log;" and then write a little program of your own to extract the needed values.

Bob Fourer
am...@googlegroups.com

=======

Baburam

unread,
Oct 23, 2017, 7:26:09 AM10/23/17
to am...@googlegroups.com
Thank you.

Baburam



--
Sent from: http://ampl.996311.n3.nabble.com/
Reply all
Reply to author
Forward
0 new messages