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§
Sourcefn initial_point(&self) -> [f64; X]
fn initial_point(&self) -> [f64; X]
Return an initial guess for all variables.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".