ampl_write_sol AMPL Toolbox

AMPL Toolbox >> AMPL Toolbox > FAQ

FAQ

Some recurrent question related to AMPL.

Description

This page contains some questions / answers related AMPL

FAQ

How can I get a version of AMPL

You can download the student edition of AMPL here: http://www.netlib.org/ampl/student/

The student edition of AMPL is limited to 300 variables and 300 constraints.

How can I get a .nl file from my .mod and .dat file ?

Once you have downloaded AMPL, you can compile a .mod + a .dat into a .nl.

# Here: http://www.netlib.org/ampl/models/
# We download mod8.mod and mod8.dat (dist.mod + dist03.dat have too many
# variables for the student edition of AMPL).

./ampl -ogmod8 mod8.mod mod8.dat

# You can get the ampl command line options via ./ampl --help
# You can get the ampl output options via ./ampl -o?
# The ./ampl -ogfilename ... will write a text filename.nl file
# The ./ampl -obfilename ... will write a binary filename.nl file

See Also

ampl_write_sol AMPL Toolbox