#include <eoVRPQuadCrossover.h>
Inheritance diagram for eoVRPGenericCrossover:

Public Member Functions | |
| eoVRPGenericCrossover () | |
| Deafult constructor. | |
| std::string | className () const |
| Returns a string containing the name of the class. | |
| bool | operator() (eoVRP &_genotype1, eoVRP &_genotype2) |
| Both parameters are the parents and the (future) children of the crossover. | |
Private Member Functions | |
| bool | GenericCrossover (const Routes &_donor, Routes &_receiver) const |
| Actually performs the generic crossover. | |
Definition at line 53 of file eoVRPQuadCrossover.h.
| std::string eoVRPGenericCrossover::className | ( | void | ) | const [inline, virtual] |
Returns a string containing the name of the class.
Used to display statistics.
Reimplemented from eoQuadOp< eoVRP >.
Definition at line 71 of file eoVRPQuadCrossover.h.
Both parameters are the parents and the (future) children of the crossover.
| _genotype1 | The first parent. | |
| _genotype2 | The second parent. |
Implements eoBF< eoVRP &, eoVRP &, bool >.
Definition at line 85 of file eoVRPQuadCrossover.h.
References eoVRP::encode(), GenericCrossover(), and eoVRP::routes().
| bool eoVRPGenericCrossover::GenericCrossover | ( | const Routes & | _donor, | |
| Routes & | _receiver | |||
| ) | const [inline, private] |
Actually performs the generic crossover.
| _donor | Set of routes from the first parent. | |
| _receiver | Set of routes from the second parent |
Definition at line 110 of file eoVRPQuadCrossover.h.
References eoRng::random().
Referenced by operator()().
1.4.7