[][src]Struct vrp_pragmatic::format::solution::Generation

pub struct Generation {
    pub number: usize,
    pub timestamp: f64,
    pub i_all_ratio: f64,
    pub i_1000_ratio: f64,
    pub is_improvement: bool,
    pub population: Vec<Individual>,
}

Represents information about generation.

Fields

number: usize

Generation sequence number.

timestamp: f64

Time since evolution started.

i_all_ratio: f64

Overall improvement ratio.

i_1000_ratio: f64

Improvement ratio last 1000 generations.

is_improvement: bool

True if this generation considered as improvement.

population: Vec<Individual>

Population state.

Trait Implementations

impl Clone for Generation[src]

impl Debug for Generation[src]

impl<'de> Deserialize<'de> for Generation[src]

impl PartialEq<Generation> for Generation[src]

impl Serialize for Generation[src]

impl StructuralPartialEq for Generation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,