MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
The postion-based crossover operator implementation. More...
Public Member Functions | |
CPositionBasedCrossover (CConfiguration configuration, double crossoverRate) | |
Creates new position-based crossover operator for the specified configuration. | |
CPositionBasedCrossover (CConfiguration configuration, double crossoverRate, double ratio) | |
Creates new position-based crossover operator for the specified configuration. | |
void | notify (CConfiguration configuration) |
Invoked when the genetic algorithm is about to be executed. | |
double | getCrossoverRatio () |
Returns The ratio of information transfered from each of the parents on a child. | |
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 postion-based crossover operator implementation.
MCScheduling.GeneticAlgorithm.CPositionBasedCrossover.CPositionBasedCrossover | ( | CConfiguration | configuration, |
double | crossoverRate | ||
) |
Creates new position-based crossover operator for the specified configuration.
configuration | The configuration of a genetic algorithm that uses this operator. |
crossoverRate | The crossover rate. |
MCScheduling.GeneticAlgorithm.CPositionBasedCrossover.CPositionBasedCrossover | ( | CConfiguration | configuration, |
double | crossoverRate, | ||
double | ratio | ||
) |
Creates new position-based crossover operator for the specified configuration.
configuration | The configuration of a genetic algorithm that uses this operator. |
crossoverRate | The crossover rate. |
ratio | The ratio of information transfered from each of the parents on a child. |
ArgumentOutOfRangeException | If the ration is not in range 0.0 to 1.0. |
override void MCScheduling.GeneticAlgorithm.CPositionBasedCrossover.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.
double MCScheduling.GeneticAlgorithm.CPositionBasedCrossover.getCrossoverRatio | ( | ) |
Returns The ratio of information transfered from each of the parents on a child.
void MCScheduling.GeneticAlgorithm.CPositionBasedCrossover.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.