[AMPL 25034] ampl to output lp

I have finished the modelling and solved for the mod file. i would want to output the lp directly, (i have a hand written script but it would take very long to transform it digitally. i wonder if ampl could do it directly

To see a listing of the objective and of each constraint that AMPL generated, you can use the command

expand;

If the listing is very long, you can redirect it to a file. For example, to redirect it to the file model.out, use the command

expand >model.out;

To get help with output in a different format, give an example of the kind of LP listing that you would like to see.

Your question has been moved to our new user forum at discuss.ampl.com, and a response has been posted there. To see the response, use this link:

https://discuss.ampl.com/t/ampl-25034-ampl-to-output-lp/1074/2

To reply, click the red “Reply” button that follows the response. (Do not send an email reply to this message.)