| MS-RCPSP
    | 
Abstract base class for crossover implementations. More...
#include <Crossover.h>

| Public Member Functions | |
| virtual T * | cross (T *a, T *b) const =0 | 
| bool | should_cross () const | 
| Protected Member Functions | |
| Crossover (double _p_cross) | |
Abstract base class for crossover implementations.
If you want to create a new crossover operator, you should create a new subclass of Crossover and implement Crossover::cross function for all specimen representations that you're using. For implementation example see src/UniformCrossover.cpp.
| T | Type of specimen representation, subclass of Schedule. | 
Definition at line 21 of file Crossover.h.
| 
 | inlineprotected | 
Creates crossover operator with supplied probability.
| _p_cross | Probability of crossover. | 
Definition at line 31 of file Crossover.h.
| 
 | pure virtual | 
Takes two specimen and performs crossover on them. Results in a new object.
Implemented in EvolutionaryAlgorithm::LAXCrossover< T >, EvolutionaryAlgorithm::OnePointCrossover< T >, and EvolutionaryAlgorithm::UniformCrossover< T >.
| 
 | inline | 
Checks whether the crossover should take place.
Definition at line 42 of file Crossover.h.
 1.8.11
 1.8.11