#[non_exhaustive]pub struct ConstrainedResult {
pub parameters: Vec<f64>,
pub objective_value: f64,
pub equality_multipliers: Vec<f64>,
pub inequality_multipliers: Vec<f64>,
pub constraint_violation: f64,
pub iterations: usize,
pub converged: bool,
}Expand description
The outcome of a constrained solve.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parameters: Vec<f64>§objective_value: f64§equality_multipliers: Vec<f64>Lagrange multipliers of the equalities.
inequality_multipliers: Vec<f64>Lagrange multipliers (≥ 0) of the inequalities; positive ones mark active constraints.
constraint_violation: f64max(|h|, max(g, 0)) at the solution.
iterations: usize§converged: boolTrait Implementations§
Source§impl Clone for ConstrainedResult
impl Clone for ConstrainedResult
Auto Trait Implementations§
impl Freeze for ConstrainedResult
impl RefUnwindSafe for ConstrainedResult
impl Send for ConstrainedResult
impl Sync for ConstrainedResult
impl Unpin for ConstrainedResult
impl UnsafeUnpin for ConstrainedResult
impl UnwindSafe for ConstrainedResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more