pub struct EvaluationRecord {
pub eval_id: usize,
pub generation: usize,
pub x: Vec<f64>,
pub f_value: f64,
pub best_so_far: f64,
pub is_improvement: bool,
}Expand description
A single function evaluation record
Fields§
§eval_id: usizeFunction evaluation number
generation: usizeGeneration number
x: Vec<f64>Input parameters x
f_value: f64Function value f(x)
best_so_far: f64Current best function value so far
is_improvement: boolWhether this evaluation improved the global best
Trait Implementations§
Source§impl Clone for EvaluationRecord
impl Clone for EvaluationRecord
Source§fn clone(&self) -> EvaluationRecord
fn clone(&self) -> EvaluationRecord
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 EvaluationRecord
impl RefUnwindSafe for EvaluationRecord
impl Send for EvaluationRecord
impl Sync for EvaluationRecord
impl Unpin for EvaluationRecord
impl UnsafeUnpin for EvaluationRecord
impl UnwindSafe for EvaluationRecord
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