pub struct SolveResult<'a, P>where
P: 'a,{
pub solver_data: SolverDataMut<'a, P>,
pub constraint_values: &'a [f64],
pub objective_value: f64,
pub status: SolveStatus,
}Expand description
A data structure to store data returned by the solver.
Fields§
§solver_data: SolverDataMut<'a, P>Data available from the solver, that can be updated by the user.
constraint_values: &'a [f64]These are the values of each constraint at the end of the time step.
objective_value: f64Objective value.
status: SolveStatusSolve status. This enum reports the status of the last solve.
Trait Implementations§
Source§impl<'a, P> Debug for SolveResult<'a, P>where
P: Debug + 'a,
impl<'a, P> Debug for SolveResult<'a, P>where
P: Debug + 'a,
Source§impl<'a, P> PartialEq for SolveResult<'a, P>where
P: PartialEq + 'a,
impl<'a, P> PartialEq for SolveResult<'a, P>where
P: PartialEq + 'a,
impl<'a, P> StructuralPartialEq for SolveResult<'a, P>where
P: 'a,
Auto Trait Implementations§
impl<'a, P> Freeze for SolveResult<'a, P>
impl<'a, P> RefUnwindSafe for SolveResult<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for SolveResult<'a, P>where
P: Send,
impl<'a, P> Sync for SolveResult<'a, P>where
P: Sync,
impl<'a, P> Unpin for SolveResult<'a, P>
impl<'a, P> !UnwindSafe for SolveResult<'a, P>
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.