cobyqa.framework.TrustRegion.get_reduction_ratio#

TrustRegion.get_reduction_ratio(step, fun_val, cub_val, ceq_val)[source]#

Get the reduction ratio.

Parameters:
stepnumpy.ndarray, shape (n,)

Trust-region step.

fun_valfloat

Objective function value at the trial point.

cub_valnumpy.ndarray, shape (m_nonlinear_ub,)

Nonlinear inequality constraint values at the trial point.

ceq_valnumpy.ndarray, shape (m_nonlinear_eq,)

Nonlinear equality constraint values at the trial point.

Returns:
float

Reduction ratio.