Struct vrp_core::solver::population::Elitism[][src]

pub struct Elitism { /* fields omitted */ }
Expand description

A simple evolution aware implementation of Population trait with the the following characteristics:

  • sorting of individuals in population according their objective fitness using NSGA-II algorithm
  • maintaining diversity of population based on their crowding distance

Implementations

Creates a new instance of Elitism.

  • problem - a Vehicle Routing Problem definition.
  • max_population_size - a max size of population size.

Shuffles objective function.

Extracts all individuals from population.

Trait Implementations

Formats the value using the given formatter. Read more

Adds all individuals into the population, then sorts and shrinks population if necessary. Returns true if any of newly added individuals is considered as best known. Read more

Adds an individual into the population. Returns true if newly added individual is considered as best known. Read more

Informs population about new generation event. This is time for the population to decide whether selection phase has to be changed. Read more

Compares two solutions the same way as population does.

Selects parents from the population based on current selection phase.

Returns subset of individuals within their rank sorted according their quality.

Returns population size.

Returns a current selection phase.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.