COBYLA#

cobyla(fun, x0, args, maxiter=50, cons=[], rhobeg=1.0, rhoend=1e-06, seed=3)[source]#

Minimize a scalar function of one or more variables using the Constrained Optimization By Linear Approximation (COBYLA) algorithm.

Parameters:
maxiterint

Maximum number of iterations to perform. Each iteration requires several function evaluations.

rhobegfloat

Initial simplex size. Determines how far from the initial guess the algorithm first explores.

rhoendfloat

Ending simplex size. When the simplex contracts to around this scale, the algorithm terminates.

Returns:
results

An OptimizeResults object.