Skip to main content

cobyqa_with

Function cobyqa_with 

Source
pub fn cobyqa_with<P: ConstrainedProblem>(
    problem: &P,
    x0: Vec<f64>,
    lower: Option<&[f64]>,
    upper: Option<&[f64]>,
    linear: Option<&LinearConstraints>,
    options: CobyqaOptions,
    callback: Option<StopCallback<'_>>,
) -> Result<CobyqaResult, ErrorsJSL>
Expand description

cobyqa with linear constraints, which are kept exact (their linearisations are the constraints themselves, and they count in the merit function and the multipliers) instead of being modelled, and a callback that receives the best point after every evaluation and stops the run by returning true (status CobyqaStatus::CallbackStop, a success).