MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
The greedy crossover operator implementation. More...
Public Member Functions | |
CGreedyCrossover (CConfiguration configuration, double crossoverRate) | |
Creates new cycle crossover operator for the specified configuration. | |
void | notify (CConfiguration configuration) |
Invoked when the genetic algorithm is about to be executed. | |
override void | apply (IChromosome daddy, IChromosome mommy, CPopulation population) |
Crossovers the specified couple of chromosomes in a operator-specific way forming a new chromosomes, who should be added to the specified population. |
The greedy crossover operator implementation.
MCScheduling.GeneticAlgorithm.CGreedyCrossover.CGreedyCrossover | ( | CConfiguration | configuration, |
double | crossoverRate | ||
) |
Creates new cycle 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.CGreedyCrossover.apply | ( | IChromosome | daddy, |
IChromosome | mommy, | ||
CPopulation | population | ||
) | [virtual] |
Crossovers the specified couple of chromosomes in a operator-specific way forming a new chromosomes, who 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. It may contain some chromosomes that have been already chosen for the next generation. |
Implements MCScheduling.GeneticAlgorithm.CBaseCrossoverOperator.
void MCScheduling.GeneticAlgorithm.CGreedyCrossover.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.