minimize(method=’COBYQA’)#

scipy.optimize.minimize(fun, x0, args=(), method=None, jac=None, hess=None, hessp=None, bounds=None, constraints=(), tol=None, callback=None, options=None)

Minimize a scalar function of one or more variables using the Constrained Optimization BY Quadratic Approximations (COBYQA) algorithm [1].

Added in version 1.14.0.

See also

For documentation for the rest of the parameters, see scipy.optimize.minimize

Options:
——-
dispbool

Set to True to print information about the optimization procedure.

maxfevint

Maximum number of function evaluations.

maxiterint

Maximum number of iterations.

f_targetfloat

Target value for the objective function. The optimization procedure is terminated when the objective function value of a feasible point (see feasibility_tol below) is less than or equal to this target.

feasibility_tolfloat

Absolute tolerance for the constraint violation.

initial_tr_radiusfloat

Initial trust-region radius. Typically, this value should be in the order of one tenth of the greatest expected change to the variables.

final_tr_radiusfloat

Final trust-region radius. It should indicate the accuracy required in the final values of the variables. If provided, this option overrides the value of tol in the minimize function.

scalebool

Set to True to scale the variables according to the bounds. If True and if all the lower and upper bounds are finite, the variables are scaled to be within the range \([-1, 1]\). If any of the lower or upper bounds is infinite, the variables are not scaled.

References