Package org.apache.wayang.profiler.log
Class Individual
java.lang.Object
org.apache.wayang.profiler.log.Individual
Context for the optimization of
LoadProfileEstimator
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Comparator<Individual>
OrdersIndividual
s by their fitness descendingly. -
Method Summary
Modifier and TypeMethodDescriptioncrossOver
(Individual that, Random random) double
double[]
mutate
(Random random, Bitmask activatedGenes, OptimizationSpace optimizationSpace, double mutationProb, double resetProb) void
setGene
(int index, double value, double maturity) double
updateFitness
(ToDoubleFunction<Individual> fitnessFunction) Update the fitness of this instance.void
updateMaturity
(Bitmask activatedGenes)
-
Field Details
-
fitnessComparator
OrdersIndividual
s by their fitness descendingly.
-
-
Method Details
-
getGenome
public double[] getGenome() -
setGene
public void setGene(int index, double value, double maturity) -
mutate
public Individual mutate(Random random, Bitmask activatedGenes, OptimizationSpace optimizationSpace, double mutationProb, double resetProb) -
crossOver
-
updateMaturity
-
updateFitness
Update the fitness of this instance.- Parameters:
fitnessFunction
- calculates the fitness for this instance- Returns:
- the new fitness
-
getFitness
public double getFitness()
-