pub trait Problem {
// Required methods
fn dim(&self) -> usize;
fn bounds(&self) -> &[Bound] ⓘ;
fn objective(&self, x: &[f64]) -> f64;
}Expand description
A box-constrained, real-valued minimization problem.
Required Methods§
Sourcefn bounds(&self) -> &[Bound] ⓘ
fn bounds(&self) -> &[Bound] ⓘ
Per-variable inclusive bounds, length Problem::dim.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".