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

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

A population which keeps track of the best known individuals only. If solutions are equal, prefers to keep first discovered.

Implementations

Creates a new instance of Greedy.

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.