MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
The alternating position crossover operator implementation. More...
Public Member Functions | |
CAlternatingPositionCrossover (CConfiguration configuration, double crossoverRate) | |
Creates new alternating crossover operator for the specified configuration. | |
void | notify (CConfiguration configuration) |
Invoked when the genetic algorithm is about to be executed. | |
void | doCrossover (IChromosome dad, IChromosome mom, IChromosome child) |
Transferes genes from dad and mom chromosome on the child in alternating way, such that no two genes with the same allele value are transferred. | |
override void | apply (IChromosome daddy, IChromosome mommy, CPopulation population) |
Crossovers the specified couple of chromosomes in a operator-specific way forming a new chromosomes that should be added to the specified population. |
The alternating position crossover operator implementation.
MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover.CAlternatingPositionCrossover | ( | CConfiguration | configuration, |
double | crossoverRate | ||
) |
Creates new alternating crossover operator for the specified configuration.
configuration | The configuration of a genetic algorithm that uses this operator. |
crossoverRate | The crossover rate. |
override void MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover.apply | ( | IChromosome | daddy, |
IChromosome | mommy, | ||
CPopulation | population | ||
) | [virtual] |
Crossovers the specified couple of chromosomes in a operator-specific way forming a new chromosomes that should be added to the specified population.
daddy | The first chromosome entering into the crossover. |
mommy | The second chromosome entering into the crossover. |
population | The population for the next generation. |
Implements MCScheduling.GeneticAlgorithm.CBaseCrossoverOperator.
void MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover.doCrossover | ( | IChromosome | dad, |
IChromosome | mom, | ||
IChromosome | child | ||
) |
Transferes genes from dad and mom chromosome on the child in alternating way, such that no two genes with the same allele value are transferred.
dad | The 1st parent chromosome. |
mom | The 2nd parent chromosome. |
child | The resulting chromosome of the crossover. |
void MCScheduling.GeneticAlgorithm.CAlternatingPositionCrossover.notify | ( | CConfiguration | configuration | ) |
Invoked when the genetic algorithm is about to be executed.
configuration | The configuration of the genetic algorithm that uses this operator. |
Implements MCScheduling.GeneticAlgorithm.IConfigurationDependent.