[][src]Enum osqp::Status

pub enum Status<'a> {
    Solved(Solution<'a>),
    SolvedInaccurate(Solution<'a>),
    MaxIterationsReached(Solution<'a>),
    TimeLimitReached(Solution<'a>),
    PrimalInfeasible(PrimalInfeasibilityCertificate<'a>),
    PrimalInfeasibleInaccurate(PrimalInfeasibilityCertificate<'a>),
    DualInfeasible(DualInfeasibilityCertificate<'a>),
    DualInfeasibleInaccurate(DualInfeasibilityCertificate<'a>),
    NonConvex(Failure<'a>),
    // some variants omitted
}

The result of solving a problem.

Variants

Solved(Solution<'a>)
SolvedInaccurate(Solution<'a>)
MaxIterationsReached(Solution<'a>)
TimeLimitReached(Solution<'a>)
PrimalInfeasible(PrimalInfeasibilityCertificate<'a>)
PrimalInfeasibleInaccurate(PrimalInfeasibilityCertificate<'a>)
DualInfeasible(DualInfeasibilityCertificate<'a>)
DualInfeasibleInaccurate(DualInfeasibilityCertificate<'a>)
NonConvex(Failure<'a>)

Implementations

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

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

Returns the primal variables at the solution if the problem is Solved.

pub fn solution(&self) -> Option<Solution<'a>>[src]

Returns the solution if the problem is Solved.

pub fn iter(&self) -> u32[src]

Returns the number of iterations taken by the solver.

pub fn setup_time(&self) -> Duration[src]

Returns the time taken for the setup phase.

pub fn solve_time(&self) -> Duration[src]

Returns the time taken for the solve phase.

pub fn polish_time(&self) -> Duration[src]

Returns the time taken for the polish phase.

pub fn run_time(&self) -> Duration[src]

Returns the total time taken by the solver.

This includes the time taken for the setup phase on the first solve.

pub fn rho_updates(&self) -> u32[src]

Returns the number of rho updates.

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

Returns the current best estimate of rho.

Trait Implementations

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

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

Auto Trait Implementations

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

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

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

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

impl<'a> UnwindSafe for Status<'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.