Struct genevo::algorithm::BestSolution
source · [−]pub struct BestSolution<G, F> where
G: Genotype,
F: Fitness, {
pub found_at: DateTime<Local>,
pub generation: u64,
pub solution: Evaluated<G, F>,
}
Expand description
The best solution found by the Simulation
. If the simulation is not
finished this is the best solution of the generation currently evaluated.
If the solution is finished this is the overall best solution found by the
simulation.
Fields
found_at: DateTime<Local>
The local time at which this solution is found.
generation: u64
The number of the generation in which this solution is found.
solution: Evaluated<G, F>
The evaluated genetic::Genotype
that is considered to be best.
Trait Implementations
sourceimpl<G: Clone, F: Clone> Clone for BestSolution<G, F> where
G: Genotype,
F: Fitness,
impl<G: Clone, F: Clone> Clone for BestSolution<G, F> where
G: Genotype,
F: Fitness,
sourcefn clone(&self) -> BestSolution<G, F>
fn clone(&self) -> BestSolution<G, F>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<G: PartialEq, F: PartialEq> PartialEq<BestSolution<G, F>> for BestSolution<G, F> where
G: Genotype,
F: Fitness,
impl<G: PartialEq, F: PartialEq> PartialEq<BestSolution<G, F>> for BestSolution<G, F> where
G: Genotype,
F: Fitness,
sourcefn eq(&self, other: &BestSolution<G, F>) -> bool
fn eq(&self, other: &BestSolution<G, F>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BestSolution<G, F>) -> bool
fn ne(&self, other: &BestSolution<G, F>) -> bool
This method tests for !=
.
impl<G: Eq, F: Eq> Eq for BestSolution<G, F> where
G: Genotype,
F: Fitness,
impl<G, F> StructuralEq for BestSolution<G, F> where
G: Genotype,
F: Fitness,
impl<G, F> StructuralPartialEq for BestSolution<G, F> where
G: Genotype,
F: Fitness,
Auto Trait Implementations
impl<G, F> RefUnwindSafe for BestSolution<G, F> where
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, F> Send for BestSolution<G, F> where
F: Send,
impl<G, F> Sync for BestSolution<G, F> where
F: Sync,
impl<G, F> Unpin for BestSolution<G, F> where
F: Unpin,
G: Unpin,
impl<G, F> UnwindSafe for BestSolution<G, F> where
F: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more