Interfaces for the NAG Mark 27.3 glopt Chapter.
glopt - Global Optimization of a Function
Global optimization involves finding the absolute maximum or minimum value of a function (the objective function) of several variables, possibly subject to restrictions (defined by a set of bounds or constraint functions) on the values of the variables.
Such problems can be much harder to solve than local optimization problems (which are discussed in submodule
opt) because it is difficult to determine whether a potential optimum found is global, and because of the nonlocal methods required to avoid becoming trapped near local optima.
Most optimization functions in the NAG Library are concerned with function minimization only, since the problem of maximizing a given objective function is equivalent to minimizing .
nlp_pso(), you may specify whether you are solving a minimization or maximization problem; in the latter case, the required transformation of the objective function will be carried out automatically.
In what follows we refer exclusively to minimization problems.
This introduction is a brief guide to the subject of global optimization, designed for the casual user. For further details you may find it beneficial to consult a more detailed text, see Neumaier (2004). Furthermore, much of the material in the E04 Introduction is also relevant in this context and it is strongly recommended that you read the E04 Introduction.
This subpackage contains examples for the
gloptmodule. See also the Examples subsection.
Nonlinear programming (NLP) – global optimization
Nonlinear least squares, data fitting – global optimization
generic, including nonlinearly constrained
option setting functions
check whether option has been set:
retrieve character option values:
retrieve integer option values:
retrieve real option values:
supply character option values:
supply integer option values:
supply option values from character string:
supply option values from external file:
supply real option values:
For full information please refer to the NAG Library document
Global optimization by multi-level coordinate search.
>>> main() naginterfaces.library.glopt.bnd_mcs_solve Python Example Results. Global optimization of the Peaks objective function. Final objective value is -6.55113 Global optimum is (0.22828, -1.62553)
Global optimization of a sum of squares problem using multi-start.
Demonstrates catching a
NagAlgorithmicWarningand accessing its
>>> main() naginterfaces.library.glopt.nlp_multistart_sqp_lsq Python Example Results. Minimizes the sum of squares function based on Problem 57 in Hock and Schittkowski (1981). Solution number 1. Final objective value = 0.0142298.