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
Trait Implementations
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 a current selection phase.