cobyqa.problem.Problem#
- class cobyqa.problem.Problem(obj, x0, bounds, linear, nonlinear, callback, feasibility_tol, scale, store_history, history_size, filter_size, debug)[source]#
Optimization problem.
- Attributes:
boundsBound constraints.
fun_historyHistory of objective function evaluations.
fun_nameName of the objective function.
is_feasibilityWhether the problem is a feasibility problem.
linearLinear constraints.
m_boundsNumber of bound constraints.
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.
maxcv_historyHistory of maximum constraint violations.
nNumber of variables.
n_evalNumber of function evaluations.
n_origNumber of variables in the original problem (with fixed variables).
typeType of the problem.
x0Initial guess.
Methods
__call__(x[, penalty])Evaluate the objective and nonlinear constraint functions.
best_eval(penalty)Return the best point in the filter and the corresponding objective and nonlinear constraint function evaluations.
build_x(x)Build the full vector of variables from the reduced vector.
maxcv(x[, cub_val, ceq_val])Evaluate the maximum constraint violation.
violation