AMPL solution file format

316 views
Skip to first unread message

vitaut

unread,
Nov 24, 2010, 8:55:19 AM11/24/10
to AMPL Modeling Language
Is there anywhere a description of the AMPL solution file format?
By the solution file I mean the one that is generated by the external
solver on 'solve' command.

Thanks,
Victor

Paul

unread,
Nov 25, 2010, 3:33:19 PM11/25/10
to AMPL Modeling Language
I don't know of any separate documentation. My guess is that if you
look at the writesol.c file and some of the sample interfaces at
http://netlib.sandia.gov/ampl/solvers/, you can figure out the file
format pretty quickly.

/Paul

Robert Fourer

unread,
Nov 27, 2010, 1:57:12 PM11/27/10
to am...@googlegroups.com, vitaut
If it would help to take a look at a solver output file, give a command like
"write gTEST;" before "solve;". Then a text version of the output file will
be written to TEST.sol. (Normally this ".sol" file is deleted after AMPL
reads its contents, but the "write" command causes it to be saved.)

Bob Fourer
4...@ampl.com

Reply all
Reply to author
Forward
0 new messages