|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.tools.optimization.RandomSearchAlgorithm.RandomSearcher
|
+--gov.sns.tools.optimization.RandomSearchAlgorithm.ComboSearcher
Use a combination of search engines to search for the best solution.
| Field Summary | |
protected RandomSearchAlgorithm.RandomSearcher |
randomSearcher
|
protected static double |
SHRINK_THRESHOLD
|
protected RandomSearchAlgorithm.ShrinkSearcher |
shrinkSearcher
|
| Fields inherited from class gov.sns.tools.optimization.RandomSearchAlgorithm.RandomSearcher |
changeProbabilityBase, randomGenerator, values |
| Constructor Summary | |
RandomSearchAlgorithm.ComboSearcher()
Constructor |
|
| Method Summary | |
void |
newScore(java.lang.Object sender,
Solution solution)
Notifies the receiver of a new score event. |
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 |
| Methods inherited from class gov.sns.tools.optimization.RandomSearchAlgorithm.RandomSearcher |
nextPoint, nextPoint, nextTrialPoint |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected RandomSearchAlgorithm.ShrinkSearcher shrinkSearcher
protected RandomSearchAlgorithm.RandomSearcher randomSearcher
protected static final double SHRINK_THRESHOLD
| Constructor Detail |
public RandomSearchAlgorithm.ComboSearcher()
| Method Detail |
public void reset()
reset in interface RandomSearchAlgorithm.Searcherreset in class RandomSearchAlgorithm.RandomSearcher
public void newTopSolution(TrialPoint oldPoint,
TrialPoint newPoint)
newTopSolution in interface RandomSearchAlgorithm.SearchernewTopSolution in class RandomSearchAlgorithm.RandomSearcheroldPoint - The old best point.newPoint - The new best point.protected double proposeValue(Variable variable)
proposeValue in class RandomSearchAlgorithm.RandomSearchervariable - the variable for which to propose a new value
public void newScore(java.lang.Object sender,
Solution solution)
newScore in interface gov.sns.tools.optimization.ScoreMonitornewScore in class RandomSearchAlgorithm.RandomSearchersender - The object posting the event.solution - The solution posted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||