public class RandomShrinkSearch.ComboSearcher extends RandomShrinkSearch.RandomSearcher
Modifier and Type | Field and Description |
---|---|
protected RandomShrinkSearch.RandomSearcher |
_randomSearcher
Description of the Field
|
protected RandomShrinkSearch.ShrinkSearcher |
_shrinkSearcher
Description of the Field
|
protected static double |
SHRINK_THRESHOLD
Description of the Field
|
_changeProbabilityBase, _randomGenerator, _values, NUM_VARIABLES
Constructor and Description |
---|
ComboSearcher()
Constructor
|
Modifier and Type | Method and 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.
|
protected double |
proposeValue(Variable variable)
Propose a new value for the variable by picking a search engine to propose a new value.
|
void |
reset()
reset for searching from scratch; forget history
|
nextPoint, nextPoint, nextTrialPoint
protected RandomShrinkSearch.ShrinkSearcher _shrinkSearcher
protected RandomShrinkSearch.RandomSearcher _randomSearcher
protected static final double SHRINK_THRESHOLD
public void reset()
reset
in interface RandomShrinkSearch.Searcher
reset
in class RandomShrinkSearch.RandomSearcher
public void newTopSolution(TrialPoint oldPoint, TrialPoint newPoint)
newTopSolution
in interface RandomShrinkSearch.Searcher
newTopSolution
in class RandomShrinkSearch.RandomSearcher
oldPoint
- The old best point.newPoint
- The new best point.protected double proposeValue(Variable variable)
proposeValue
in class RandomShrinkSearch.RandomSearcher
variable
- the variable for which to propose a new value