MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
In case one wants the selection preasure to vary during the evolution he uses Bolzmann scaling. More...
Public Member Functions | |
CBoltzmannScaling (double startTemperature, double minimumTemperature, double coolingStep) | |
Initializes the boltzmann scaling method. | |
void | notify (CConfiguration configuration) |
Invoked when the genetic algorithm is about to be executed. | |
double | getMinimumTemperature () |
Returns the minimum temperature. | |
double | getStartTemperature () |
Returns the starting temperature. | |
double | getCoolingStepSize () |
Returns the step size of the temperature dropping. | |
void | scale (CPopulation population) |
Scales the fitness scores of the individuals within the specified population. |
In case one wants the selection preasure to vary during the evolution he uses Bolzmann scaling.
This scaling method works like this: First, a temperature is set and a size of a step in which will be decreased each call, then average value of e^(fitness/temperature) is calculated, where e is the Euler's number and fitness is a fitness score of an individual in a population, afterwards, the fitness score for each individual is assigned according to newFitness = e^(oldFitness/temperature) / average.
MCScheduling.GeneticAlgorithm.CBoltzmannScaling.CBoltzmannScaling | ( | double | startTemperature, |
double | minimumTemperature, | ||
double | coolingStep | ||
) |
Initializes the boltzmann scaling method.
startTemperature | The starting temperature. |
minimumTemperature | The minimum value the temperature may cool down to. It must be smaller then start temperature. |
coolingStep | The step in which the temperature falls down. |
ArgumentException | If the starting temperature is smaller then the minimum temperature. |
double MCScheduling.GeneticAlgorithm.CBoltzmannScaling.getCoolingStepSize | ( | ) |
Returns the step size of the temperature dropping.
double MCScheduling.GeneticAlgorithm.CBoltzmannScaling.getMinimumTemperature | ( | ) |
Returns the minimum temperature.
double MCScheduling.GeneticAlgorithm.CBoltzmannScaling.getStartTemperature | ( | ) |
Returns the starting temperature.
void MCScheduling.GeneticAlgorithm.CBoltzmannScaling.notify | ( | CConfiguration | configuration | ) |
Invoked when the genetic algorithm is about to be executed.
configuration | The configuration of the genetic algorithm that uses this scaler. |
Implements MCScheduling.GeneticAlgorithm.IConfigurationDependent.
void MCScheduling.GeneticAlgorithm.CBoltzmannScaling.scale | ( | CPopulation | population | ) |
Scales the fitness scores of the individuals within the specified population.
For more information look at the description of the CBoltzmannScaling class.
population | The population of individuals to be scaled. |
Implements MCScheduling.GeneticAlgorithm.IFitnessScaler.