|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.optimizer.SearchAlgorithm
| Constructor Summary | |
protected |
SearchAlgorithm()
Creates a new instance of SearchAlgorithm |
| Method Summary | |
protected boolean |
accept(double[] coords)
returns true if all coordinates inside limits and false otherwise. |
protected boolean |
acceptProxyForFitting(ParameterProxy pr)
returns true if this ParameterProxy will be used in fitting. |
protected abstract double |
getBestScore()
returns the best score after step |
protected java.util.Map |
getBestSolutionMap()
returns the best solution map. |
int |
getNumVariables()
returns the number of variables. |
protected Scorer |
getScorer()
returns the Scorer's instance. |
protected abstract int |
getType()
returns the type of the algorithm. |
java.util.List |
getVariables()
returns the vector with ParameterProxy instances. |
protected boolean |
getWantToStop()
returns true if the algorithm wants to stop. |
protected abstract boolean |
makeStep()
make one step in the search. |
protected abstract void |
reset()
reset for searching from scratch; forget history |
protected void |
setScorer(Scorer scorer)
|
protected void |
setVariables(java.util.Collection theVariables)
set the variables to be used in the search |
protected void |
setWantToStop(boolean st)
this method is used by Solver to notify the algorithm about its desire to stop. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected SearchAlgorithm()
| Method Detail |
protected final void setScorer(Scorer scorer)
protected final void setVariables(java.util.Collection theVariables)
public final java.util.List getVariables()
public final int getNumVariables()
protected final Scorer getScorer()
protected final java.util.Map getBestSolutionMap()
protected boolean accept(double[] coords)
protected boolean acceptProxyForFitting(ParameterProxy pr)
protected final void setWantToStop(boolean st)
protected final boolean getWantToStop()
protected abstract void reset()
protected abstract boolean makeStep()
protected abstract double getBestScore()
protected abstract int getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||