protected class RandomShrinkSearch.ShrinkSearcher extends RandomShrinkSearch.RandomSearcher
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<Variable,xal.extension.solver.algorithm.VariableWindow> |
_variableWindows
Description of the Field
|
_changeProbabilityBase, _randomGenerator, _values, NUM_VARIABLES| Constructor and Description |
|---|
ShrinkSearcher()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildWindows()
Build the new bounds based upon the user specified domain and the search algorithm's
search space per variable.
|
xal.extension.solver.algorithm.VariableWindow |
getSearchWindow(Variable variable)
Get the variable's search window for the specified variable.
|
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.
|
void |
printVariableSearchWindows(java.lang.String message)
Print variables' search windows.
|
protected double |
proposeValue(Variable variable)
Propose a new value for the variable by selecting a random value from the variable's
shrunken search space.
|
void |
reset()
reset for searching from scratch; forget history
|
nextPoint, nextPoint, nextTrialPointprotected java.util.Map<Variable,xal.extension.solver.algorithm.VariableWindow> _variableWindows
public void reset()
reset in interface RandomShrinkSearch.Searcherreset in class RandomShrinkSearch.RandomSearcherpublic xal.extension.solver.algorithm.VariableWindow getSearchWindow(Variable variable)
variable - the variable for which to get the search windowpublic void printVariableSearchWindows(java.lang.String message)
public void newTopSolution(TrialPoint oldPoint, TrialPoint newPoint)
newTopSolution in interface RandomShrinkSearch.SearchernewTopSolution in class RandomShrinkSearch.RandomSearcheroldPoint - The old best point.newPoint - The new best point.protected void buildWindows()
protected double proposeValue(Variable variable)
proposeValue in class RandomShrinkSearch.RandomSearchervariable - the variable for which to propose a new value