[−][src]Enum osqp::Status
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,