Is there any possible to only use presolve in ampl and save the new model into a new nl file? or are there any tools to presolve and save a new nl model?

7 views
Skip to first unread message

Yudi, Judy WANG

unread,
Nov 29, 2016, 8:17:12 PM11/29/16
to AMPL Modeling Language
As the title:

Is there any possible to only use presolve in ampl and save the new model into a new nl file? or are there any tools to presolve and save a new nl model?

Thanks in advanced!


Sincerely,
Yudi Wang

Robert Fourer

unread,
Nov 30, 2016, 2:43:05 PM11/30/16
to am...@googlegroups.com
The AMPL command

write btest;

will write the AMPL model -- *after* presolve -- to an nl file named test.nl. You can replace "test" with any other name you like in the write statement, and you can replace "b" with "g" to get a text version of the nl file instead of a binary version.

The "write" command only writes the nl file and does not invoke a solver.

Bob Fourer
am...@googlegroups.com

=======
Reply all
Reply to author
Forward
0 new messages