|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.optimizer.FunctionSolver
| Constructor Summary | |
FunctionSolver()
Creates a new instance of FunctionSolver with simplex algorithm. |
|
FunctionSolver(int algorithmType)
Creates a new instance of FunctionSolver with an algorithm of certain type. |
|
| Method Summary | |
protected void |
addFittingDataPoint(int i,
double x,
double y)
|
double |
elapsedTime()
Returns the time that has been spent. |
SearchAlgorithm |
getAlgorothm()
Returns an inner search algorithm. |
double[] |
getBestParamsArray()
Returns the best set of parameters as an array. |
double[] |
getBestParamsStepsArray()
Returns the steps of the best set of parameters as an array. |
java.util.List |
getBestParamsStepsList()
Returns the steps of the best set of parameters as a list. |
double |
getBestScore()
Returns the best score. |
Scoreboard |
getScoreboard()
Returns Scoreboard. |
Solver |
getSolver()
Returns an inner solver. |
boolean |
isRunning()
Returns true if it is runnung. |
int |
iterations()
Returns the number of iterations. |
void |
setFittingData(double[] xA,
double[] yA)
|
void |
setFittingData(java.util.List xL,
java.util.List yL)
|
protected void |
setFittingDataCpacity(int n)
|
void |
setFunction(FunctionWithArray fArr)
|
void |
setFunction(FunctionWithList fList)
|
void |
setInitialParameters(double[] params,
double[] steps)
|
void |
setInitialParameters(double[] params,
double[] steps,
double[] lower,
double[] upper)
|
void |
setInitialParameters(java.util.List params,
java.util.List steps)
|
void |
setSearchAlgorithm(int algorithmType)
Sets the search algorithm of certain type. |
void |
setStopper(SolveStopper aStopper)
Sets the SolveStopper. |
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 FunctionSolver()
public FunctionSolver(int algorithmType)
| Method Detail |
public void setSearchAlgorithm(int algorithmType)
public void setFunction(FunctionWithArray fArr)
public void setFunction(FunctionWithList fList)
public void setInitialParameters(double[] params,
double[] steps)
public void setInitialParameters(double[] params,
double[] steps,
double[] lower,
double[] upper)
public void setInitialParameters(java.util.List params,
java.util.List steps)
public void setFittingData(double[] xA,
double[] yA)
public void setFittingData(java.util.List xL,
java.util.List yL)
protected void setFittingDataCpacity(int n)
protected void addFittingDataPoint(int i,
double x,
double y)
public void solve()
public void setStopper(SolveStopper aStopper)
public boolean isRunning()
public void wantToStop()
public SearchAlgorithm getAlgorothm()
public Solver getSolver()
public Scoreboard getScoreboard()
public double[] getBestParamsArray()
public double[] getBestParamsStepsArray()
public java.util.List getBestParamsStepsList()
public double elapsedTime()
public double getBestScore()
public int iterations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||