|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.optimizer.AbstractOptimizerConfiguration
Implementation of IOptimizerConfiguration for the AbstractOptimizer implementation
Field Summary |
Fields inherited from interface hep.aida.ext.IOptimizerConfiguration |
CHI2_FIT_ERROR, DEFAULT_ERROR, DETAILED_OUTPUT, LOGL_FIT_ERROR, NO_OUTPUT, NORMAL_OUTPUT |
Constructor Summary | |
AbstractOptimizerConfiguration()
|
Method Summary | |
int |
errorDefinition()
Get the optimizer's error definition. |
int |
maxIterations()
Get the maximum number of iterations allowed before exiting the optimization procedure. |
String |
method()
Get the method used by the optimizer in the optimization procedure. |
double |
precision()
Get the internal precision of the Optimizer. |
int |
printLevel()
Get the printout level. |
void |
setErrorDefinition(int errorDefinition)
Tell the optmizer what kind of errors to calculate. |
void |
setMaxIterations(int maxIterations)
Set the maximum number of iterations to be performed in the optimization procedure. |
void |
setMethod(String method)
Set the method to be used by the optimizer in the optimization procedure. |
void |
setPrecision(double precision)
Set the precision required in the optimizer's calculations. |
void |
setPrintLevel(int printLevel)
Set the printout level. |
void |
setStrategy(int strategy)
Set the strategy to be used by the optimizer in the optimization procedure. |
void |
setTitle(String title)
Set the title for the current optimization problem. |
void |
setTolerance(double tolerance)
Set the optimizer's tolerance. |
void |
setUseFunctionGradient(boolean useGradient)
Specify if the optimizer has to use the gradient as provided by the IFunction. |
void |
setUseFunctionHessian(boolean useHessian)
Specify if the optimizer has to use the Hessian as provided by the IFunction. |
int |
strategy()
Get the strategy used by the optimizer in the optimization procedure. |
String |
title()
Get the title. |
double |
tolerance()
Get the optimizer's tolerance. |
boolean |
useFunctionGradient()
See if the optimizer uses the IFunction's evaluation of the gradient. |
boolean |
useFunctionHessian()
See if the optimizer uses the IFunction's evaluation of the Hessian. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractOptimizerConfiguration()
Method Detail |
public void setErrorDefinition(int errorDefinition) throws IllegalArgumentException
setErrorDefinition
in interface IOptimizerConfiguration
errorDefinition
- The type of error to be calculated.
IllegalArgumentException
public int errorDefinition()
errorDefinition
in interface IOptimizerConfiguration
public void setMaxIterations(int maxIterations)
setMaxIterations
in interface IOptimizerConfiguration
maxIterations
- The maximum number of iterations.public int maxIterations()
maxIterations
in interface IOptimizerConfiguration
public void setMethod(String method)
setMethod
in interface IOptimizerConfiguration
method
- The method to be adapted.public String method()
method
in interface IOptimizerConfiguration
public void setPrecision(double precision)
setPrecision
in interface IOptimizerConfiguration
precision
- The precision.
true
if the precision was set succesfully,
false
otherwise.public double precision()
precision
in interface IOptimizerConfiguration
public void setPrintLevel(int printLevel)
setPrintLevel
in interface IOptimizerConfiguration
printLevel
- The printout level.
true
if the level was set succesfully,
false
otherwise.public int printLevel()
printLevel
in interface IOptimizerConfiguration
public void setStrategy(int strategy)
setStrategy
in interface IOptimizerConfiguration
strategy
- The strategy.public int strategy()
strategy
in interface IOptimizerConfiguration
public void setTitle(String title)
setTitle
in interface IOptimizerConfiguration
title
- The title.public String title()
title
in interface IOptimizerConfiguration
public void setTolerance(double tolerance)
setTolerance
in interface IOptimizerConfiguration
tolerance
- The tolerance.
true
if the tolerance was set succesfully,
false
otherwise.public double tolerance()
tolerance
in interface IOptimizerConfiguration
public void setUseFunctionGradient(boolean useGradient)
setUseFunctionGradient
in interface IOptimizerConfiguration
useGradient
- true
if the Optimizer has to use the IFunction's
calculation of the gradient, false
otherwise.public boolean useFunctionGradient()
useFunctionGradient
in interface IOptimizerConfiguration
true
if the optimizer uses the IFunction's evaluation of the gradient.public void setUseFunctionHessian(boolean useHessian)
setUseFunctionHessian
in interface IOptimizerConfiguration
useHessian
- true
if the Optimizer has to use the IFunction's
calculation of the Hessian, false
otherwise.public boolean useFunctionHessian()
useFunctionHessian
in interface IOptimizerConfiguration
true
if the optimizer uses the IFunction's evaluation of the Hessian.
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |