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
}
Expand description
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§
Source§impl<'a> Status<'a>
impl<'a> Status<'a>
Sourcepub fn x(&self) -> Option<&'a [f64]>
pub fn x(&self) -> Option<&'a [f64]>
Returns the primal variables at the solution if the problem is Solved
.
Sourcepub fn setup_time(&self) -> Duration
pub fn setup_time(&self) -> Duration
Returns the time taken for the setup phase.
Sourcepub fn solve_time(&self) -> Duration
pub fn solve_time(&self) -> Duration
Returns the time taken for the solve phase.
Sourcepub fn polish_time(&self) -> Duration
pub fn polish_time(&self) -> Duration
Returns the time taken for the polish phase.
Sourcepub fn run_time(&self) -> Duration
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.
Sourcepub fn rho_updates(&self) -> u32
pub fn rho_updates(&self) -> u32
Returns the number of rho updates.
Sourcepub fn rho_estimate(&self) -> f64
pub fn rho_estimate(&self) -> f64
Returns the current best estimate of rho.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Status<'a>
impl<'a> RefUnwindSafe for Status<'a>
impl<'a> Send for Status<'a>
impl<'a> Sync for Status<'a>
impl<'a> Unpin for Status<'a>
impl<'a> UnwindSafe for Status<'a>
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