public class SatisfactionSumJudge extends SolutionJudge
| Modifier and Type | Field and Description |
|---|---|
protected double |
_bestWeightedSum |
protected java.util.Map<Objective,java.lang.Double> |
_objectiveWeightMap |
protected java.util.List<Trial> |
_optimalSolutions |
protected double |
DEFAULT_WEIGHT |
_eventProxy, _messageCenter| Constructor and Description |
|---|
SatisfactionSumJudge()
Creates a new SatisfactionJudge instance
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Trial> |
getOptimalSolutions()
Get the optimal solutions.
|
void |
judge(Trial trial)
Judge the trial.
|
void |
reset()
Reset the satisfaction sum judge.
|
void |
setWeight(Objective objective,
double weight)
Set the weight of an objective.
|
addSolutionJudgeListener, getInstance, removeSolutionJudgeListenerprotected final double DEFAULT_WEIGHT
protected double _bestWeightedSum
protected java.util.List<Trial> _optimalSolutions
protected java.util.Map<Objective,java.lang.Double> _objectiveWeightMap
public SatisfactionSumJudge()
public void reset()
reset in class SolutionJudgepublic void setWeight(Objective objective, double weight)
objective - The objective to weight.weight - The weight to give the objective.public java.util.List<Trial> getOptimalSolutions()
getOptimalSolutions in class SolutionJudgepublic void judge(Trial trial)
judge in class SolutionJudgetrial - the trial to judge.