cobyqa.framework.TrustRegion#
- class cobyqa.framework.TrustRegion(pb, options, constants)[source]#
Trust-region framework.
- Attributes:
best_indexIndex of the best interpolation point.
ceq_bestValues of the nonlinear equality constraints at
x_best.cub_bestValues of the nonlinear inequality constraints at
x_best.fun_bestValue of the objective function at
x_best.m_linear_eqNumber of linear equality constraints.
m_linear_ubNumber of linear inequality constraints.
m_nonlinear_eqNumber of nonlinear equality constraints.
m_nonlinear_ubNumber of nonlinear inequality constraints.
modelsModels of the objective function and constraints.
nNumber of variables.
penaltyPenalty parameter.
radiusTrust-region radius.
resolutionResolution of the trust-region framework.
x_bestBest interpolation point.
Methods
Decrease the penalty parameter.
enhance_resolution(options)Enhance the resolution of the trust-region framework.
Get the linearizations of the constraints at a given point.
get_geometry_step(k_new, options)Get the geometry-improving step.
get_index_to_remove([x_new])Get the index of the interpolation point to remove.
get_reduction_ratio(step, fun_val, cub_val, ...)Get the reduction ratio.
get_second_order_correction_step(step, options)Get the second-order correction step.
get_trust_region_step(options)Get the trust-region step.
increase_penalty(step)Increase the penalty parameter.
lag_model(x)Evaluate the Lagrangian model at a given point.
Evaluate the curvature of the Lagrangian model along a given direction.
Evaluate the gradient of the Lagrangian model at a given point.
Evaluate the Hessian matrix of the Lagrangian model at a given point.
Evaluate the right product of the Hessian matrix of the Lagrangian model with a given vector.
merit(x[, fun_val, cub_val, ceq_val])Evaluate the merit function at a given point.
Set the index of the best point.
Set the Lagrange multipliers.
shift_x_base(options)Shift the base point to
x_best.sqp_ceq(step)Evaluate the linearization of the nonlinear equality constraints.
sqp_cub(step)Evaluate the linearization of the nonlinear inequality constraints.
sqp_fun(step)Evaluate the objective function of the SQP subproblem.
update_radius(step, ratio)Update the trust-region radius.