Class TacticsResultCandidate
java.lang.Object
org.opt4j.core.Individual
de.uka.ipd.sdq.dsexplore.opt4j.representation.DSEIndividual
de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.TacticsResultCandidate
HeuristicCandidate is used to manage the candidates generated
be heuristics
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opt4j.core.Individual
org.opt4j.core.Individual.State
-
Field Summary
Fields inherited from class org.opt4j.core.Individual
genotype, individualStateListeners, objectives, phenotype, state
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
double
Returns product of Heuristic Weight and Candidate Weightvoid
setCandidateWeight
(double candidateWeight) Sets weight of candidatevoid
setHeuristic
(ITactic heuristic) Sets heuristic that generated candidateMethods inherited from class de.uka.ipd.sdq.dsexplore.opt4j.representation.DSEIndividual
equals, getGenotype, getGenotypeString, getID, getNumericID, getObjectives, getProblem, hashCode, setIndividualStatusListeners, setObjectives
Methods inherited from class org.opt4j.core.Individual
getPhenotype, getState, isDecoded, isEvaluated, setGenotype, setPhenotype, setState
-
Field Details
-
logger
protected static org.apache.log4j.Logger logger
-
-
Constructor Details
-
TacticsResultCandidate
-
-
Method Details
-
getCandidateWeight
public double getCandidateWeight()- Returns:
- Weight of candidate
-
setCandidateWeight
public void setCandidateWeight(double candidateWeight) Sets weight of candidate- Parameters:
candidateWeight
- Weight of candidate. If parameter is < 0, weight will be 0. If parameter is > 1, weight will be 1
-
getHeuristic
- Returns:
- Heuristic that generated this candidate
-
setHeuristic
Sets heuristic that generated candidate- Parameters:
heuristic
-
-
getFinalWeight
public double getFinalWeight()Returns product of Heuristic Weight and Candidate Weight- Returns:
-
getParent
- Returns:
- the parent
-