gov.sns.tools.optimization
Class Solver

java.lang.Object
  |
  +--gov.sns.tools.optimization.Solver

Deprecated. The optimization package has been replaced by the optimizer package.

public class Solver
extends java.lang.Object

Solver is the primary class for setting up and running an optimization.


Field Summary
protected  SearchAlgorithm algorithm
          Deprecated.  
protected  MessageCenter messageBoard
          Deprecated.  
protected  Scoreboard scoreboard
          Deprecated.  
protected  Scorer scorer
          Deprecated.  
protected  SolveStopper stopper
          Deprecated.  
 
Constructor Summary
Solver()
          Deprecated. Creates a new instance of Solver
 
Method Summary
 Scoreboard getScoreboard()
          Deprecated. Get the scoreboard that shows the present state of solving.
 void setEvaluator(Evaluator evaluator)
          Deprecated. Set the evaluator to use in scoring the trial points.
 void setStopper(SolveStopper aStopper)
          Deprecated. Set the object that will be used to determine when the solver should stop running.
 void setVariables(java.util.Collection variables)
          Deprecated. Set the variables for the optimization problem.
 void solve()
          Deprecated. Begin solving the problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageBoard

protected MessageCenter messageBoard
Deprecated. 

scoreboard

protected Scoreboard scoreboard
Deprecated. 

scorer

protected Scorer scorer
Deprecated. 

algorithm

protected SearchAlgorithm algorithm
Deprecated. 

stopper

protected SolveStopper stopper
Deprecated. 
Constructor Detail

Solver

public Solver()
Deprecated. 
Creates a new instance of Solver

Method Detail

setVariables

public void setVariables(java.util.Collection variables)
Deprecated. 
Set the variables for the optimization problem.

Parameters:
variables - A collection of variables.

setEvaluator

public void setEvaluator(Evaluator evaluator)
Deprecated. 
Set the evaluator to use in scoring the trial points. The evaluator defines the problem we are trying to optimize.

Parameters:
evaluator - The object to use in scoring the trial points.

setStopper

public void setStopper(SolveStopper aStopper)
Deprecated. 
Set the object that will be used to determine when the solver should stop running.

Parameters:
aStopper - The object that will be used to determine when the solver should stop running.

solve

public void solve()
Deprecated. 
Begin solving the problem. Generate trial points, score them and stop when the stopper indicates.


getScoreboard

public Scoreboard getScoreboard()
Deprecated. 
Get the scoreboard that shows the present state of solving. It shows the best solution found so far and the time elapsed since solving started.

Returns:
The scoreboard that shows the present state of solving.