pub trait SimpleADProblem<const X: usize>: BasicADProblem<X> {
// Required methods
fn objective<D: DualNum<f64> + Copy>(&self, x: [D; X]) -> D;
fn constraint_values<D: DualNum<f64> + Copy>(&self, x: [D; X]) -> Vec<D>;
}Expand description
The interface for a simple NLP in which the objective function and constraint values are determined separate from each other.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.