Interface RandomShrinkSearch.Searcher

All Known Implementing Classes:
RandomShrinkSearch.ComboSearcher, RandomShrinkSearch.RandomSearcher, RandomShrinkSearch.ShrinkSearcher
Enclosing class:
RandomShrinkSearch

protected static interface RandomShrinkSearch.Searcher
Interface for classes that search for solutions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    newTopSolution(TrialPoint oldPoint, TrialPoint newPoint)
    An event indicating that a new solution has been found which is better than the previous best solution according to the score given by the evaluator.
    Get the next trial point.
    void
    reset for searching from scratch; forget history
    void
    turns shouldShift on
  • Method Details

    • reset

      void reset()
      reset for searching from scratch; forget history
    • shouldShift

      void shouldShift()
      turns shouldShift on
    • newTopSolution

      void newTopSolution(TrialPoint oldPoint, TrialPoint newPoint)
      An event indicating that a new solution has been found which is better than the previous best solution according to the score given by the evaluator.
      Parameters:
      oldPoint - The old best point.
      newPoint - The new best point.
    • nextTrialPoint

      TrialPoint nextTrialPoint()
      Get the next trial point.
      Returns:
      the next trial point.