Class SatisfactionSumJudge

java.lang.Object
xal.extension.solver.solutionjudge.SolutionJudge
xal.extension.solver.solutionjudge.SatisfactionSumJudge

public class SatisfactionSumJudge extends SolutionJudge
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 Details

    • DEFAULT_WEIGHT

      protected static final double DEFAULT_WEIGHT
      See Also:
    • bestWeightedSum

      protected double bestWeightedSum
    • optimalSolutions

      protected List<Trial> optimalSolutions
    • objectiveWeightMap

      protected Map<Objective,Double> objectiveWeightMap
  • Constructor Details

    • SatisfactionSumJudge

      public SatisfactionSumJudge()
      Creates a new SatisfactionJudge instance
  • Method Details

    • reset

      public void reset()
      Reset the satisfaction sum judge.
      Specified by:
      reset in class SolutionJudge
    • setWeight

      public void setWeight(Objective objective, double weight)
      Set the weight of an objective.
      Parameters:
      objective - The objective to weight.
      weight - The weight to give the objective.
    • getOptimalSolutions

      public List<Trial> getOptimalSolutions()
      Get the optimal solutions.
      Specified by:
      getOptimalSolutions in class SolutionJudge
      Returns:
      A list of solutions
    • judge

      public void judge(Trial trial)
      Judge the trial.
      Specified by:
      judge in class SolutionJudge
      Parameters:
      trial - the trial to judge.