For reading .nl files, you need to use gurobi_ampl -- the version of Gurobi that is compiled with the AMPL interface. Usually gurobi_ampl is run from within the AMPL program, but you can also run it standalone by giving a command like
gurobi_ampl
yourfile.nl -AMPL
where "
yourfile.nl" is replaced by the actual name of your .nl file. When the gurobi_ampl run is finished, it will write a file like "yourfile.sol" which you will need to read back into AMPL (using AMPL's "solution" command) to examine the solution.
If you received the Gurobi program files from Gurobi Optimization, then you may already have gurobi_ampl. If not, you can contact their support to get it.
Bob Fourer
4...@ampl.com
=======