Skip to contents

NOMADOpt() (OptimizationNOMAD.jl) minimizes a black box objective with the mesh adaptive direct search method of NOMAD, subject to the bounds of the problem and to lcons <= cons(u) <= ucons. Each constraint enters as max(lcons - cons(u), cons(u) - ucons) <= 0. The native method uses a quadratic model search after each failed poll (quadratic regression models of the objective and the constraints on the cached points near the iterate, minimized in a trust box) and 2n orthogonal poll directions, doubles the frame after a success, halves it after a failure and stops when the frame reaches the precision of the iterate, after maxiters (NOMAD's max_bb_eval, default 20000) evaluations or after maxtime seconds. NOMAD's Nelder Mead search is not part of the native method, so iterates and counts differ from NOMAD while the solutions agree.

Usage

NOMADOpt()

Value

An algorithm object for solve().

Details

Options of solve(): cons_method ("ExtremeBarrierMethod", the default, or "ProgressiveBarrierMethod", which the native method treats as the extreme barrier after its first phase), and the NOMAD options max_bb_eval, opportunistic_eval, use_cache and the display options, which have no effect. abstol and reltol are not used, as in OptimizationNOMAD.jl.

Examples

prob <- OptimizationProblem(function(u, p) (u[1] - 1) * (u[1] - 1) + (u[2] + 2) * (u[2] + 2),
                            c(0, 0), numeric())
solve(prob, NOMADOpt())$u
#> [1]  1 -2