Class SimplexSearchAlgorithm

java.lang.Object
xal.extension.solver.algorithm.SearchAlgorithm
xal.extension.solver.algorithm.SimplexSearchAlgorithm
All Implemented Interfaces:
AlgorithmScheduleListener, SolutionJudgeListener

public class SimplexSearchAlgorithm extends SearchAlgorithm
Simplex optimization search algorithm.
Author:
shishlo
  • Constructor Details

    • SimplexSearchAlgorithm

      public SimplexSearchAlgorithm()
      Empty constructor.
  • Method Details

    • setProblem

      public void setProblem(Problem problem)
      Set the specified problem to solve. Override the inherited method to initialize the searcher.
      Overrides:
      setProblem in class SearchAlgorithm
      Parameters:
      problem - the problem to solve
    • reset

      public void reset()
      Reset this algorithm.
      Overrides:
      reset in class SearchAlgorithm
    • getLabel

      public String getLabel()
      Get the label for this search algorithm.
      Specified by:
      getLabel in class SearchAlgorithm
      Returns:
      The label for this algorithm
    • performRun

      public void performRun(AlgorithmSchedule algorithmSchedule)
      Calculate the next few trial points.
      Specified by:
      performRun in class SearchAlgorithm
    • getMinEvaluationsPerRun

      public int getMinEvaluationsPerRun()
      Get the minimum number of evaluations per run.
      Overrides:
      getMinEvaluationsPerRun in class SearchAlgorithm
      Returns:
      the minimum number of evaluation per run.
    • getMaxEvaluationsPerRun

      public int getMaxEvaluationsPerRun()
      Get the maximum number of evaluations per run.
      Overrides:
      getMaxEvaluationsPerRun in class SearchAlgorithm
      Returns:
      the maximum number of evaluation per run.
    • globalRating

      public int globalRating()
      Get the rating for this algorithm which in an integer between 0 and 10 and indicates how well this algorithm performs on global searches.
      Returns:
      The global search rating for this algorithm.
    • localRating

      public int localRating()
      Get the rating for this algorithm which in an integer between 0 and 10 and indicates how well this algorithm performs on local searches.
      Returns:
      The local search rating for this algorithm.
    • trialScored

      public void trialScored(AlgorithmSchedule schedule, Trial trial)
      Handle a message that a trial has been scored.
      Specified by:
      trialScored in interface AlgorithmScheduleListener
      Overrides:
      trialScored in class SearchAlgorithm
      Parameters:
      schedule - Description of the Parameter
      trial - Description of the Parameter
    • trialVetoed

      public void trialVetoed(AlgorithmSchedule schedule, Trial trial)
      Handle a message that a trial has been vetoed.
      Specified by:
      trialVetoed in interface AlgorithmScheduleListener
      Overrides:
      trialVetoed in class SearchAlgorithm
      Parameters:
      schedule - Description of the Parameter
      trial - Description of the Parameter
    • foundNewOptimalSolution

      public void foundNewOptimalSolution(SolutionJudge source, List<Trial> solutions, Trial solution)
      Send a message that a new optimal solution has been found.
      Specified by:
      foundNewOptimalSolution in interface SolutionJudgeListener
      Overrides:
      foundNewOptimalSolution in class SearchAlgorithm
      Parameters:
      source - The source of the new optimal solution.
      solutions - The list of solutions.
      solution - The new optimal solution.