Struct revonet::result::EAResult [] [src]

pub struct EAResult<T: Individual> {
    pub min_fitness: Vec<f32>,
    pub max_fitness: Vec<f32>,
    pub avg_fitness: Vec<f32>,
    pub best: T,
    pub best_fe_count: u32,
    pub first_hit_fe_count: u32,
    pub fe_count: u32,
}

Structure to hold results for the genetic algorithm run.

Fields

Array of minimal absolute values of fitness for each generation.

Array of maximal absolute values of fitness for each generation.

Array of average absolute values of fitness for each generation.

Best individual ever found during the single run.

Number of function evaluations required to find the best individual.

Number of function evaluations required to find the solution according to the OptProblem::is_solution function.

Total number of function evaluations used in the current run.

Methods

impl<T: Individual> EAResult<T>
[src]

Initialize empty result structure.

Trait Implementations

impl<T: Clone + Individual> Clone for EAResult<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + Individual> Debug for EAResult<T>
[src]

Formats the value using the given formatter.