public abstract class AbstractOptimizer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractOptimizer.LineSearchMethod |
static class |
AbstractOptimizer.OptimizationException
The OptimizationException class encompasses all the exception that can be thrown when the
optimizer fails to reach convergence.
|
Modifier and Type | Field and Description |
---|---|
protected Matrix |
betaVector |
protected boolean |
convergenceAchieved |
protected double |
convergenceCriterion |
protected Matrix |
hessianMatrix |
protected double |
optimalValue |
Constructor and Description |
---|
AbstractOptimizer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addOptimizerListener(OptimizerListener listener) |
protected void |
fireOptimizerEvent(java.lang.String actionString) |
double |
getConvergenceCriterion() |
Matrix |
getHessianAtMaximum() |
double |
getOptimalValue()
This method returns the optimal value resulting from the optimization.
|
Matrix |
getParametersAtMaximum() |
boolean |
isConvergenceAchieved() |
protected boolean |
isVerboseEnabled() |
abstract boolean |
optimize(AbstractMathematicalFunction function,
java.util.List<java.lang.Integer> indicesOfParametersToOptimize)
This method optimizes the likelihood of the StatisticalModel instance.
|
protected void |
removeOptimizerListener(OptimizerListener listener) |
void |
setConvergenceCriterion(double conv) |
void |
setVerboseEnabled(boolean verboseEnabled)
This method sets the verbose to true or false.
|
java.lang.String |
toString() |
protected double convergenceCriterion
protected boolean convergenceAchieved
protected double optimalValue
protected Matrix betaVector
protected Matrix hessianMatrix
protected void addOptimizerListener(OptimizerListener listener)
protected void removeOptimizerListener(OptimizerListener listener)
public boolean isConvergenceAchieved()
public Matrix getParametersAtMaximum()
public Matrix getHessianAtMaximum()
public void setVerboseEnabled(boolean verboseEnabled)
verboseEnabled
- true to get the information about the subiteration or false (DEFAULT VALUE).protected boolean isVerboseEnabled()
public java.lang.String toString()
toString
in class java.lang.Object
public double getOptimalValue()
public double getConvergenceCriterion()
public void setConvergenceCriterion(double conv)
public abstract boolean optimize(AbstractMathematicalFunction function, java.util.List<java.lang.Integer> indicesOfParametersToOptimize) throws AbstractOptimizer.OptimizationException
function
- a AbstractMathematicalFunction objectindicesOfParametersToOptimize
- a List instance that contains the indices of the parameters to be optimizedAbstractOptimizer.OptimizationException
protected void fireOptimizerEvent(java.lang.String actionString)