Enum osqp::Status [−][src]
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>), // 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>)
Methods
impl<'a> Status<'a>
[src]
impl<'a> Status<'a>
pub fn x(&self) -> Option<&'a [f64]>
[src]
pub fn x(&self) -> Option<&'a [f64]>
Returns the primal variables at the solution if the problem is Solved
.
pub fn solution(&self) -> Option<Solution<'a>>
[src]
pub fn solution(&self) -> Option<Solution<'a>>
Returns the solution if the problem is Solved
.
pub fn iter(&self) -> u32
[src]
pub fn iter(&self) -> u32
Returns the number of iterations taken by the solver.
pub fn setup_time(&self) -> Duration
[src]
pub fn setup_time(&self) -> Duration
Returns the time taken for the setup phase.
pub fn solve_time(&self) -> Duration
[src]
pub fn solve_time(&self) -> Duration
Returns the time taken for the solve phase.
pub fn polish_time(&self) -> Duration
[src]
pub fn polish_time(&self) -> Duration
Returns the time taken for the polish phase.
pub fn run_time(&self) -> Duration
[src]
pub fn run_time(&self) -> Duration
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]
pub fn rho_updates(&self) -> u32
Returns the number of rho updates.
pub fn rho_estimate(&self) -> f64
[src]
pub fn rho_estimate(&self) -> f64
Returns the current best estimate of rho.
Trait Implementations
impl<'a> Clone for Status<'a>
[src]
impl<'a> Clone for Status<'a>
fn clone(&self) -> Status<'a>
[src]
fn clone(&self) -> Status<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for Status<'a>
[src]
impl<'a> Debug for Status<'a>