Class WorstObjectiveBiasedJudge

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

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

    • biasWeight

      protected final double biasWeight
      the bias weight
    • bestSatisfaction

      protected double bestSatisfaction
      the current best satisfaction
    • totalWeight

      protected double totalWeight
      used to normalize the total satisfaction to a scale of 0 to 1
    • optimalSolutions

      protected List<Trial> 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:
      reset in class SolutionJudge
    • 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 with which to update the solution judge.