pub struct Individual<T: Float + Debug + Send + Sync + 'static> {
pub architecture: OptimizerArchitecture<T>,
pub objectives: Vec<T>,
pub constraints: Vec<T>,
pub rank: usize,
pub crowding_distance: T,
pub fitness: T,
pub id: String,
}Expand description
Individual in the population
Fields§
§architecture: OptimizerArchitecture<T>Architecture
objectives: Vec<T>Objective values
constraints: Vec<T>Constraint violations
rank: usizeDominance rank
crowding_distance: TCrowding distance
fitness: TFitness value (for single-objective algorithms)
id: StringIndividual ID
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Individual<T>
impl<T> RefUnwindSafe for Individual<T>
impl<T> Send for Individual<T>
impl<T> Sync for Individual<T>
impl<T> Unpin for Individual<T>
impl<T> UnsafeUnpin for Individual<T>
impl<T> UnwindSafe for Individual<T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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