Class SolutionJudge

java.lang.Object
xal.extension.solver.solutionjudge.SolutionJudge
Direct Known Subclasses:
ParetoOptimalJudge, SatisfactionSumJudge, WorstObjectiveBiasedJudge

public abstract class SolutionJudge extends Object
SolutionJudge decides whether the latest scored solution is an optimal solution. In many cases only one solution can be the optimal solution at any time. In other cases, there may be a surface of optimal solutions at any time.
Author:
ky6, t6p
  • Field Details

    • messageCenter

      protected MessageCenter messageCenter
      message center for dispatching events to registered listeners
    • eventProxy

      protected SolutionJudgeListener eventProxy
      proxy which forwards events to registered listeners
  • Constructor Details

    • SolutionJudge

      protected SolutionJudge()
      Creates a new instance of SolutionJudge
  • Method Details

    • getInstance

      public static SolutionJudge getInstance()
      Get the default solution judge.
      Returns:
      the worst objective biased judge
    • reset

      public abstract void reset()
      Reset the solution judge.
    • addSolutionJudgeListener

      public void addSolutionJudgeListener(SolutionJudgeListener aListener)
      Add a solution judge listener.
      Parameters:
      aListener - The listener to add.
    • removeSolutionJudgeListener

      public void removeSolutionJudgeListener(SolutionJudgeListener aListener)
      Remove a solution judge listener.
      Parameters:
      aListener - The listener to remove.
    • getOptimalSolutions

      public abstract List<Trial> getOptimalSolutions()
      Get the optimal solutions.
      Returns:
      A list of solutions.
    • judge

      public abstract void judge(Trial trial)
      Judge the trial.
      Parameters:
      trial - The trial to update the solution judge with.