To solve an AMPL model in the .nl format, move to the build directory and:
- run cmake with 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 -AMPL flag is supplied, the solution is written to the AMPL solution file model.sol
Options can be set in three different ways (parsed in this order):
- passing an option file (option_file=file) that contains an option value pair per line (the example file uno_default.opt in 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.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.