Skip to main content

slsqp

Function slsqp 

Source
pub fn slsqp<P: ConstrainedProblem>(
    problem: &P,
    x0: Vec<f64>,
    lower: Option<&[f64]>,
    upper: Option<&[f64]>,
    options: SlsqpOptions,
) -> Result<SlsqpResult, ErrorsJSL>
Expand description

Minimises problem.objective subject to the bounds lower ≤ x ≤ upper (None: unbounded) and the problem’s inequalities(x) ≤ 0 and equalities(x) = 0, by SLSQP (SciPy’s minimize(method='SLSQP')). The problem’s gradient and Jacobians are used (central differences unless the problem provides them); x0 is moved into the bounds first.