Open 4er4er4er opened 1 year ago
@4er4er4er I cannot reproduce the output order. Both in Windows and Linux I see:
ampl: solve;
Gurobi 10.0.2: Set parameter LogToConsole to value 1
tech:outlev=1
Set parameter NodeMethod to value 0
mip:nodemethod=0
Set parameter IterationLimit to value 1000
lim:iter=1000
Set parameter InfUnbdInfo to value 1
Gurobi Optimizer version 10.0.2 build v10.0.2rc0 (win64)
(and nothing about options after that.) I'd need the exact test setup please. @mapgccv do you guess what's happening?
I did some further testing:
Fixed, to appear in the next release. Tested in Windows IDE (assume SW works similarly).
Solution: flush console output.
Log:
ampl: option gurobi_options 'outlev=1 nodemethod=0 iterlim 1000 version';
ampl: solve;
Gurobi 10.0.2: Set parameter LogToConsole to value 1
tech:outlev = 1
Set parameter NodeMethod to value 0
mip:nodemethod = 0
Set parameter IterationLimit to value 1000
lim:iter = 1000
tech:version
AMPL/Gurobi Optimizer [10.0.2] (Windows AMD64), driver(20230817), MP(20230817)
Licensed to License for development and testing <gleb@ampl.com>.
Maintenance expires with version 20231231.
Using license file "C:\Users\gbelov\AMPL\ampl.lic".
Set parameter InfUnbdInfo to value 1
Gurobi Optimizer version 10.0.2 build v10.0.2rc0 (win64)
....
In build 20230728,
gurobiasl
recognizes a space or an = sign between an option name and the corresponding value. Butgurobi
only recognizes an = sign:Also, when outlev=1 is specified, the beginning of the log lists Gurobi names for options that were specified:
The AMPL names for the options are only echoed at the end of the log:
The Gurobi names for the options are not helpful to most AMPL users, so it would be desirable to suppress them and to instead echo the AMPL option names at the beginning, like
gurobiasl
does:(It would be really good if the few remaining stray
Set parameter
messages could also be suppressed, but I recall that that's more challenging.)