pub struct IndexedEvaluation {
pub index: usize,
pub individual: Array1<f64>,
pub fitness: f64,
}Expand description
Structure to batch evaluate individuals with their indices.
Fields§
§index: usizeIndex of the individual in the population.
individual: Array1<f64>The individual’s solution vector.
fitness: f64The computed fitness value.
Auto Trait Implementations§
impl Freeze for IndexedEvaluation
impl RefUnwindSafe for IndexedEvaluation
impl Send for IndexedEvaluation
impl Sync for IndexedEvaluation
impl Unpin for IndexedEvaluation
impl UnsafeUnpin for IndexedEvaluation
impl UnwindSafe for IndexedEvaluation
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> 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