pub struct OptimiserResult {
pub solutions: Vec<Solution>,
pub n_iterations: usize,
pub execution_time: f64,
}
Expand description
Contains the results of a successful optimisation run.
Fields§
§solutions: Vec<Solution>
For multi-objective problems, this contains the set of non-dominated solutions (the Pareto front). For single-objective problems, it will typically contain a single best solution.
n_iterations: usize
The number of iterations the optimiser ran for.
execution_time: f64
The total time taken for the solve
method to execute, in seconds.
Implementations§
Trait Implementations§
Source§impl Clone for OptimiserResult
impl Clone for OptimiserResult
Source§fn clone(&self) -> OptimiserResult
fn clone(&self) -> OptimiserResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OptimiserResult
impl RefUnwindSafe for OptimiserResult
impl Send for OptimiserResult
impl Sync for OptimiserResult
impl Unpin for OptimiserResult
impl UnwindSafe for OptimiserResult
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more