[][src]Struct osqp::Solution

pub struct Solution<'a> { /* fields omitted */ }

A solution to a problem.

Implementations

impl<'a> Solution<'a>[src]

pub fn x(&self) -> &'a [f64][src]

Returns the primal variables at the solution.

pub fn y(&self) -> &'a [f64][src]

Returns the dual variables at the solution.

These are the Lagrange multipliers of the constraints l <= Ax <= u.

pub fn polish_status(&self) -> PolishStatus[src]

Returns the status of the polish operation.

pub fn obj_val(&self) -> f64[src]

Returns the primal objective value.

pub fn pri_res(&self) -> f64[src]

Returns the norm of primal residual.

pub fn dua_res(&self) -> f64[src]

Returns the norm of dual residual.

Trait Implementations

impl<'a> Clone for Solution<'a>[src]

impl<'a> Debug for Solution<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Solution<'a>[src]

impl<'a> Send for Solution<'a>[src]

impl<'a> Sync for Solution<'a>[src]

impl<'a> Unpin for Solution<'a>[src]

impl<'a> UnwindSafe for Solution<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.