pub struct ConstrainedResult<T: Float> {
pub solution: Vec<T>,
pub objective_value: T,
pub lambda: Vec<T>,
pub mu: Vec<T>,
pub constraint_violations: Vec<T>,
pub iterations: usize,
pub converged: bool,
pub kkt_error: T,
}Expand description
Results from constrained optimization
Fields§
§solution: Vec<T>Optimal solution
objective_value: TOptimal objective value
lambda: Vec<T>Lagrange multipliers for inequality constraints
mu: Vec<T>Lagrange multipliers for equality constraints
constraint_violations: Vec<T>Final constraint violations
iterations: usizeNumber of iterations performed
converged: boolConvergence status
kkt_error: TKKT error (measure of optimality)
Trait Implementations§
Source§impl<T: Clone + Float> Clone for ConstrainedResult<T>
impl<T: Clone + Float> Clone for ConstrainedResult<T>
Source§fn clone(&self) -> ConstrainedResult<T>
fn clone(&self) -> ConstrainedResult<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for ConstrainedResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConstrainedResult<T>where
T: RefUnwindSafe,
impl<T> Send for ConstrainedResult<T>where
T: Send,
impl<T> Sync for ConstrainedResult<T>where
T: Sync,
impl<T> Unpin for ConstrainedResult<T>where
T: Unpin,
impl<T> UnwindSafe for ConstrainedResult<T>where
T: UnwindSafe,
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