public class OverallFitness extends TreeFitnessAbstract
Modifier and Type | Class and Description |
---|---|
static class |
OverallFitness.OverallFitnessGUI
GUI class that provides a GUI interface (for the ProM Wizard) to this
fitness evaluator.
|
TreeFitnessAbstract.TreeFitnessGUISettingsAbstract<F extends TreeFitnessAbstract>, TreeFitnessAbstract.TreeFitnessGUISettingsEmpty<F extends TreeFitnessAbstract>
Modifier and Type | Field and Description |
---|---|
boolean |
fitnessMultiplication
If set to true the fitness values of the other dimension are multiplied
by the Fr fitness value.
|
static TreeFitnessInfo |
info |
Modifier | Constructor and Description |
---|---|
protected |
OverallFitness() |
|
OverallFitness(CentralRegistry registry)
An empty constructor that creates and empty evaluators list
|
|
OverallFitness(CentralRegistry registry,
java.util.LinkedHashMap<TreeFitnessAbstract,java.lang.Double> alg)
Constructor which is provided a list of instantiated fitness algorithms
and their weights
|
|
OverallFitness(OverallFitness original) |
Modifier and Type | Method and Description |
---|---|
void |
addEvaluator(TreeFitnessAbstract evaluator,
double weight) |
java.util.LinkedHashMap<TreeFitnessAbstract,java.lang.Double> |
getEvaluators()
Returns the currently set fitness evaluators and their weights.
|
double |
getFitness(NAryTree candidate,
java.util.List<? extends NAryTree> population)
Calculates a fitness score for the given candidate.
|
TreeFitnessInfo |
getInfo()
Returns the STATIC info for the metric instance
|
deepClone, deepClone, getGUISettingsPanel, instantiateTreeFitness, isNatural
public static final TreeFitnessInfo info
public boolean fitnessMultiplication
protected OverallFitness()
public OverallFitness(CentralRegistry registry)
public OverallFitness(CentralRegistry registry, java.util.LinkedHashMap<TreeFitnessAbstract,java.lang.Double> alg)
seed
- alg
- public OverallFitness(OverallFitness original)
public void addEvaluator(TreeFitnessAbstract evaluator, double weight)
public java.util.LinkedHashMap<TreeFitnessAbstract,java.lang.Double> getEvaluators()
public double getFitness(NAryTree candidate, java.util.List<? extends NAryTree> population)
FitnessEvaluator
FitnessEvaluator.isNatural()
). This method must always
return a value greater than or equal to zero. Framework behaviour is
undefined for negative fitness scores.candidate
- The candidate solution to calculate fitness for.population
- The entire population. This will include the specified
candidate. This is provided for fitness evaluators that
evaluate individuals in the context of the population that
they are part of (e.g. a program that evolves game-playing
strategies may wish to play each strategy against each of the
others). This parameter can be ignored by simple fitness
evaluators. When iterating over the population, a simple
reference equality check (==) can be used to identify which
member of the population is the specified candidate.public TreeFitnessInfo getInfo()
TreeFitnessAbstract
getInfo
in class TreeFitnessAbstract