Class SatisfactionSumJudge
java.lang.Object
xal.extension.solver.solutionjudge.SolutionJudge
xal.extension.solver.solutionjudge.SatisfactionSumJudge
SatisfactionSumJudge is a solution judge that decides whether a solution
should be kept based on the weighted sum of all the objective's satisfaction.
- Author:
- ky6, t6p
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected static final doubleFields inherited from class xal.extension.solver.solutionjudge.SolutionJudge
eventProxy, messageCenter -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class xal.extension.solver.solutionjudge.SolutionJudge
addSolutionJudgeListener, getInstance, removeSolutionJudgeListener
-
Field Details
-
DEFAULT_WEIGHT
protected static final double DEFAULT_WEIGHT- See Also:
-
bestWeightedSum
protected double bestWeightedSum -
optimalSolutions
-
objectiveWeightMap
-
-
Constructor Details
-
SatisfactionSumJudge
public SatisfactionSumJudge()Creates a new SatisfactionJudge instance
-
-
Method Details
-
reset
public void reset()Reset the satisfaction sum judge.- Specified by:
resetin classSolutionJudge
-
setWeight
Set the weight of an objective.- Parameters:
objective- The objective to weight.weight- The weight to give the objective.
-
getOptimalSolutions
Get the optimal solutions.- Specified by:
getOptimalSolutionsin classSolutionJudge- Returns:
- A list of solutions
-
judge
Judge the trial.- Specified by:
judgein classSolutionJudge- Parameters:
trial- the trial to judge.
-