|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.optimizer.EvaluatorSolver
| Constructor Summary | |
EvaluatorSolver()
Creates a new instance of EvaluatorSolver a random search algorithm. |
|
EvaluatorSolver(int algorithmType)
Creates a new instance of EvaluatorSolver with an algorithm of certain type. |
|
| Method Summary | |
void |
addBestSolutionListener(java.awt.event.ActionListener al)
Adds the best solution events listener. |
SearchAlgorithm |
getAlgorothm()
Returns an inner search algorithm. |
double |
getBestScore()
Returns the best score. |
TrialPoint |
getBestTrialPoint()
Returns the best solution as the TrialPoint class instance. |
java.util.List |
getParametersProxies()
Returns an unmodifiable list of ParameterProxy instances. |
Scoreboard |
getScoreboard()
Returns Scoreboard. |
boolean |
isRunning()
Returns true if it is runnung. |
void |
removeBestSolutionListener(java.awt.event.ActionListener al)
Removes the best solution events listener. |
void |
removeBestSolutionListeners()
Removes all of the best solution events listeners. |
void |
setEvaluator(Evaluator evaluator)
Set the evaluator to use in scoring the trial points. |
void |
setSearchAlgorithm(int algorithmType)
Sets the search algorithm of certain type. |
void |
setStopper(SolveStopper aStopper)
Set the object that will be used to determine when the solver should stop running. |
void |
setVariables(java.util.Collection vars)
Set the variables for the optimization problem. |
void |
solve()
Finds the solution of the problem. |
void |
wantToStop()
Notifies the solver that user wants to stop the process. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EvaluatorSolver()
public EvaluatorSolver(int algorithmType)
| Method Detail |
public void setSearchAlgorithm(int algorithmType)
public void setVariables(java.util.Collection vars)
public void setEvaluator(Evaluator evaluator)
evaluator - The object to use in scoring the trial points.public void setStopper(SolveStopper aStopper)
aStopper - The object that will be used to determine when the solver should stop running.public void solve()
public java.util.List getParametersProxies()
public boolean isRunning()
public void wantToStop()
public SearchAlgorithm getAlgorothm()
public Scoreboard getScoreboard()
public TrialPoint getBestTrialPoint()
public double getBestScore()
public void addBestSolutionListener(java.awt.event.ActionListener al)
public void removeBestSolutionListener(java.awt.event.ActionListener al)
public void removeBestSolutionListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||