MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
The exchange mutation operator. More...
Public Member Functions | |
CExchangeMutation (CConfiguration configuration, double mutationRate) | |
Creates new exchange mutation operator for the specified configuration. | |
override void | apply (IChromosome chromosome) |
Mutates the specified chromosome in a operator-specific way forming a new chromosome, which will then go to the next generation. |
The exchange mutation operator.
It randomly chooses two genes within a chromosome with uniform probability, and then simply swaps them.
MCScheduling.GeneticAlgorithm.CExchangeMutation.CExchangeMutation | ( | CConfiguration | configuration, |
double | mutationRate | ||
) |
Creates new exchange mutation operator for the specified configuration.
configuration | The configuration of a genetic algorithm that uses this operator. |
mutationRate | The mutation rate. |
override void MCScheduling.GeneticAlgorithm.CExchangeMutation.apply | ( | IChromosome | chromosome | ) | [virtual] |
Mutates the specified chromosome in a operator-specific way forming a new chromosome, which will then go to the next generation.
chromosome | The chromosome to be mutated. |
Implements MCScheduling.GeneticAlgorithm.CBaseMutationOperator.