Class WorstObjectiveBiasedJudge
java.lang.Object
xal.extension.solver.solutionjudge.SolutionJudge
xal.extension.solver.solutionjudge.WorstObjectiveBiasedJudge
This judge weights the least satisfied objective most and each subsequent one
half less than the prior one. Each objective satisfaction must be based on a
range of 0 to 1.
- Author:
- t6p
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doublethe current best satisfactionprotected final doublethe bias weightthe current list of the most optimal solutionsprotected doubleused to normalize the total satisfaction to a scale of 0 to 1Fields 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
-
biasWeight
protected final double biasWeightthe bias weight -
bestSatisfaction
protected double bestSatisfactionthe current best satisfaction -
totalWeight
protected double totalWeightused to normalize the total satisfaction to a scale of 0 to 1 -
optimalSolutions
the current list of the most optimal solutions
-
-
Constructor Details
-
WorstObjectiveBiasedJudge
public WorstObjectiveBiasedJudge()Constructor -
WorstObjectiveBiasedJudge
public WorstObjectiveBiasedJudge(double biasWeight) Constructor
-
-
Method Details
-
reset
public void reset()Reset the satisfaction sum judge.- Specified by:
resetin classSolutionJudge
-
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 with which to update the solution judge.
-