Package org.apache.wayang.profiler.log
Class Individual
java.lang.Object
org.apache.wayang.profiler.log.Individual
Context for the optimization of
LoadProfileEstimators.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Comparator<Individual>OrdersIndividuals by their fitness descendingly. -
Method Summary
Modifier and TypeMethodDescriptioncrossOver(Individual that, Random random) doubledouble[]mutate(Random random, Bitmask activatedGenes, OptimizationSpace optimizationSpace, double mutationProb, double resetProb) voidsetGene(int index, double value, double maturity) doubleupdateFitness(ToDoubleFunction<Individual> fitnessFunction) Update the fitness of this instance.voidupdateMaturity(Bitmask activatedGenes)
-
Field Details
-
fitnessComparator
OrdersIndividuals 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()
-