README.md
May 26, 2026 ยท View on GitHub
Uno's AMPL interface
To solve an AMPL model in the .nl format, move to the build directory and:
- run
cmakewith the path to the ASL library:-DAMPLSOLVER=path - compile the executable
make uno_ampl - run the command
./uno_ampl model.nl [-AMPL] [option=value ...]where[option=value ...]is a list of options separated by spaces. If the-AMPLflag is supplied, the solution is written to the AMPL solution filemodel.sol
Options can be set in three different ways (parsed in this order):
- passing an option file (
option_file=file) that contains anoption valuepair per line (the example fileuno_default.optin the root directory contains Uno's default options). The options are set in this particular order. Anything that follows a#is treated as a comment and is ignored. - setting a preset that mimics an existing solver (
preset=[filtersqp|ipopt]). - setting individual options (see the default options).
For an overview of the available strategies, type:
./uno_ampl --strategies:
A couple of CUTEst instances are available in the /examples directory.