Method of moving asymptotes in pure Julia
Description
There are 2 versions of the method of moving asymptotes (MMA) that are available in NonconvexMMA.jl:
- The original MMA algorithm from the 1987 paper.
- The globally convergent MMA (GCMMA) algorithm from the 2002 paper.
The MMA algorithm only supports inequality constraints. However, the original algorithm was slightly generalized to handle infinite variable bounds.
Quick start
Given a model model and an initial solution x0, the following can be used to optimize the model using MMA.
using NonconvexMMA
alg = MMA87() # or MMA02()
options = MMAOptions()
result = optimize(model, alg, x0, options = options, convcriteria = KKTCriteria())Construct an instance
To construct an instance of the original MMA algorithm, use:
alg = MMA87()or alternatively:
alg = MMA()To construct an instance of the globally convergent MMA algorithm, use:
alg = MMA02()or alternatively:
alg = GCMMA()Options
To specify options for the MMA algorithm, you can construct an instance of MMAOptions and use keyword arguments. The tol option in MMA can be set to an instance of the Tolerance struct.
Convergence criteria
There are 4 convergence criteria available for the MMA algorithm:
GenericCriteriaKKTCriteriaScaledKKTCriteriaIpoptCriteria
To specify the convergence criteria, use:
converiteria = GenericCriteria()replacing GenericCriteria() by KKTCriteria(), ScaledKKTCriteria() or IpoptCriteria().