BasicADProblem

Trait BasicADProblem 

Source
pub trait BasicADProblem<const X: usize> {
    // Required methods
    fn bounds(&self) -> ([f64; X], [f64; X]);
    fn initial_point(&self) -> [f64; X];
    fn constraint_bounds(&self) -> (Vec<f64>, Vec<f64>);
}
Expand description

The basic information that needs to be provided for every optimization problem.

Required Methods§

Source

fn bounds(&self) -> ([f64; X], [f64; X])

Return lower and upper bounds for all variables.

Source

fn initial_point(&self) -> [f64; X]

Return an initial guess for all variables.

Source

fn constraint_bounds(&self) -> (Vec<f64>, Vec<f64>)

Return the lower and upper bounds for all constraints.

Implementors§