MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
Evaluates the chromosome representing a schedule for a mixed-criticality instance according to its total lateness and maximum completion time, i.e. More...
Public Member Functions | |
CMinimizeMakespanFitnessEvaluator () | |
Creates the CMinimizeMakespanFitnessEvaluator with makespan and lateness factors set to 0.5. | |
CMinimizeMakespanFitnessEvaluator (double makespanFactor, double latenessFactor) | |
Creates the CMinimizeMakespanFitnessEvaluator for the specified lateness, makespan weighting factor. | |
double | getMakespanFactor () |
Returns the makespan factor. | |
void | setMakespanFactor (double makespanFactor) |
Sets the makespan factor. | |
double | getLatenessFactor () |
Returns the lateness factor. | |
void | setLatenessFactor (double latenessFactor) |
Sets the lateness factor. | |
void | notify (CConfiguration configuration) |
Invoked when the genetic algorithm that uses this operator is about to be executed. | |
void | evaluate (IChromosome c) |
Evaluate the specified individual which represents a schedule of associated mixed-criticality instance. | |
void | evaluate (CPopulation population) |
Evaluates the population of schedules according to their total lateness and makespan. |
Evaluates the chromosome representing a schedule for a mixed-criticality instance according to its total lateness and maximum completion time, i.e.
the schedule's makespan.
MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.CMinimizeMakespanFitnessEvaluator | ( | double | makespanFactor, |
double | latenessFactor | ||
) |
Creates the CMinimizeMakespanFitnessEvaluator for the specified lateness, makespan weighting factor.
makespanFactor | The weight of makespan. |
latenessFactor | The weight of lateness. |
void MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.evaluate | ( | IChromosome | c | ) |
Evaluate the specified individual which represents a schedule of associated mixed-criticality instance.
The evaluation is base on the total lateness and makespan of the schedule - the fittest individuals has got the lateness equal to zero and the makespan as small as possible.
c | The individual - schedule to be evaluated. |
Implements MCScheduling.GeneticAlgorithm.IFitnessEvaluator.
void MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.evaluate | ( | CPopulation | population | ) |
Evaluates the population of schedules according to their total lateness and makespan.
population | The population of chromosomes - schedules to be evaluated. |
Implements MCScheduling.GeneticAlgorithm.IFitnessEvaluator.
double MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.getLatenessFactor | ( | ) |
Returns the lateness factor.
double MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.getMakespanFactor | ( | ) |
Returns the makespan factor.
void MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.notify | ( | CConfiguration | configuration | ) |
Invoked when the genetic algorithm that uses this operator is about to be executed.
configuration | The configuration the operator depends on. |
Implements MCScheduling.GeneticAlgorithm.IConfigurationDependent.
void MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.setLatenessFactor | ( | double | latenessFactor | ) |
Sets the lateness factor.
latenessFactor | The new lateness factor value. |
void MCScheduling.MixedCriticality.GA.CMinimizeMakespanFitnessEvaluator.setMakespanFactor | ( | double | makespanFactor | ) |
Sets the makespan factor.
makespanFactor | The new makespan factor value. |