Package xal.extension.solver.algorithm
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 TypeMethodDescriptionvoidnewTopSolution(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.voidreset()reset for searching from scratch; forget historyvoidturns shouldShift on
-
Method Details
-
reset
void reset()reset for searching from scratch; forget history -
shouldShift
void shouldShift()turns shouldShift on -
newTopSolution
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.
-