A modern, modular solver for nonlinearly constrained optimization
Uno (Unifying Nonlinear Optimization) is a C++ library that unifies methods for solving nonlinearly constrained optimization problems of the form:
The theoretical abstract framework for unifying nonlinearly constrained optimization was developed by Charlie Vanaret (Argonne National Laboratory & Zuse-Institut Berlin) and Sven Leyffer (Argonne National Laboratory). Uno was designed and implemented by Charlie Vanaret. It is released under the MIT license (see the license file).
The contributors are (in alphabetical order): Oscar Dowson @odow, David Kiessling @david0oo, Alexis Montoison @amontoison, Manuel Schaich @worc4021, Silvio Traversaro @traversaro, Rujia Liu @rujialiu.
We argue that most optimization methods can be broken down into the following generic ingredients:
- a constraint relaxation strategy: a systematic way to relax the general constraints;
- an inequality handling method: a systematic way to handle the inequality constraints;
- a Hessian model: a model of the Lagrangian Hessian of the original problem;
- a regularization strategy: a strategy to regularize the Lagrangian Hessian or the augmented system of the reformulated problem;
- a globalization strategy: an acceptance test of the trial iterate;
- a globalization mechanism: a recourse action upon rejection of the trial iterate.
The following graph gives an overview of state-of-the-art strategies:
Any strategy combination can be automatically generated without any programming effort from the user. Note that all combinations do not necessarily result in sensible algorithms, or even convergent approaches. For more details, check out our preprint or my latest slides.
Uno implements presets, that is strategy combinations that correspond to existing solvers (as well as hyperparameter values found in their documentations):
-
filtersqp
mimics filterSQP (trust-region feasibility restoration filter SQP method with exact Hessian); -
ipopt
mimics IPOPT (line-search feasibility restoration filter barrier method with exact Hessian and primal-dual regularization); -
byrd
mimics Byrd's S$\ell_1$ QP (line-search$\ell_1$ merit S$\ell_1$ QP method with exact Hessian and primal regularization).
Some of Uno combinations that correspond to existing solvers (called presets, see below) have been tested against state-of-the-art solvers on 429 small problems of the CUTEst benchmark.
The figure below is a performance profile of Uno and state-of-the-art solvers filterSQP, IPOPT, SNOPT, MINOS, LANCELOT, LOQO and CONOPT; it shows how many problems are solved for a given budget of function evaluations (1 time, 2 times, 4 times, ...,
All log files can be found here.
We have submitted our paper to the Mathematical Programming Computation journal. The preprint is available on ResearchGate.
Until it is published, you can use the following bibtex entry:
@unpublished{VanaretLeyffer2024,
author = {Vanaret, Charlie and Leyffer, Sven},
title = {Unifying nonlinearly constrained nonconvex optimization},
year = {2024},
note = {Submitted to Mathematical Programming Computation}
}
To mention Uno on Twitter, use @UnoSolver.
To mention Uno on LinkedIn, use #unosolver.
See the INSTALL file.
Options can be set in three different ways (with decreasing precedence):
- passing an option file (
option_file=file
) that containsoption value
on each line; - setting a preset that mimics an existing solver (
preset=[filtersqp|ipopt|byrd]
); - setting individual options (see the default options).
To solve an AMPL model in the .nl format, type in the build
directory: ./uno_ampl model.nl -AMPL [option=value ...]
where [option=value ...]
is a list of options separated by spaces.
A couple of CUTEst instances are available in the /examples
directory.
Uno can be installed in Julia via Uno_jll.jl and used via AmplNLWriter.jl. An example can be found here.
For an overview of the available strategies, type: ./uno_ampl --strategies
:
- to pick a constraint relaxation strategy, use the argument:
constraint_relaxation_strategy=[feasibility_restoration|l1_relaxation]
- to pick an inequality handling method, use the argument:
subproblem=[QP|LP|primal_dual_interior_point]
- to pick a Hessian model, use the argument:
hessian_model=[exact|identity|zero]
- to pick a regularization strategy, use the argument:
regularization_strategy=[primal|primal_dual|none]
- to pick a globalization strategy, use the argument:
globalization_strategy=[l1_merit|fletcher_filter_method|waechter_filter_method|funnel_method]
- to pick a globalization mechanism, use the argument :
globalization_mechanism=[LS|TR]