hep.aida.ext
Interface IOptimizerConfiguration
-
- All Known Implementing Classes:
- AbstractOptimizerConfiguration, FminOptimizerConfiguration, MinpackOptimizerConfiguration, UncminOptimizerConfiguration
public interface IOptimizerConfiguration
-
-
Field Summary
Fields Modifier and Type Field and Description static intCHI2_FIT_ERRORstatic intDEFAULT_ERRORThe error definition for the optimizers.static intDETAILED_OUTPUTstatic intLOGL_FIT_ERRORstatic intNO_OUTPUTThe printout levels for the optimizer.static intNORMAL_OUTPUT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description interrorDefinition()Get the optimizer's error definition.intmaxIterations()Get the maximum number of iterations allowed before exiting the optimization procedure.java.lang.Stringmethod()Get the method used by the optimizer in the optimization procedure.doubleprecision()Get the internal precision of the Optimizer.intprintLevel()Get the printout level.voidsetErrorDefinition(int errDef)Tell the optmizer what kind of errors to calculate.voidsetMaxIterations(int maxIter)Set the maximum number of iterations to be performed in the optimization procedure.voidsetMethod(java.lang.String method)Set the method to be used by the optimizer in the optimization procedure.voidsetPrecision(double precision)Set the precision required in the optimizer's calculations.voidsetPrintLevel(int printLevel)Set the printout level.voidsetStrategy(int strategy)Set the strategy to be used by the optimizer in the optimization procedure.voidsetTitle(java.lang.String title)Set the title for the current optimization problem.voidsetTolerance(double tolerance)Set the optimizer's tolerance.voidsetUseFunctionGradient(boolean useGradient)Specify if the optimizer has to use the gradient as provided by the IFunction.voidsetUseFunctionHessian(boolean useHessian)Specify if the optimizer has to use the Hessian as provided by the IFunction.intstrategy()Get the strategy used by the optimizer in the optimization procedure.java.lang.Stringtitle()Get the title.doubletolerance()Get the optimizer's tolerance.booleanuseFunctionGradient()See if the optimizer uses the IFunction's evaluation of the gradient.booleanuseFunctionHessian()See if the optimizer uses the IFunction's evaluation of the Hessian.
-
-
-
Field Detail
-
DEFAULT_ERROR
static final int DEFAULT_ERROR
The error definition for the optimizers.- See Also:
- Constant Field Values
-
CHI2_FIT_ERROR
static final int CHI2_FIT_ERROR
- See Also:
- Constant Field Values
-
LOGL_FIT_ERROR
static final int LOGL_FIT_ERROR
- See Also:
- Constant Field Values
-
NO_OUTPUT
static final int NO_OUTPUT
The printout levels for the optimizer.- See Also:
- Constant Field Values
-
NORMAL_OUTPUT
static final int NORMAL_OUTPUT
- See Also:
- Constant Field Values
-
DETAILED_OUTPUT
static final int DETAILED_OUTPUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setTolerance
void setTolerance(double tolerance) throws java.lang.IllegalArgumentExceptionSet the optimizer's tolerance. The tolerance is used to determine if the optimizer converged to an optimal solution.- Parameters:
tolerance- The tolerance.- Throws:
java.lang.IllegalArgumentException
-
tolerance
double tolerance()
Get the optimizer's tolerance.- Returns:
- The tolerance.
-
setPrecision
void setPrecision(double precision) throws java.lang.IllegalArgumentExceptionSet the precision required in the optimizer's calculations. The highest possible is the machine's precision.- Parameters:
precision- The precision.- Throws:
java.lang.IllegalArgumentException
-
precision
double precision()
Get the internal precision of the Optimizer.- Returns:
- The precision.
-
setErrorDefinition
void setErrorDefinition(int errDef) throws java.lang.IllegalArgumentExceptionTell the optmizer what kind of errors to calculate.- Parameters:
errDef- The type of error to be calculated.- Throws:
java.lang.IllegalArgumentException
-
errorDefinition
int errorDefinition()
Get the optimizer's error definition.- Returns:
- The error definition.
-
setMaxIterations
void setMaxIterations(int maxIter) throws java.lang.IllegalArgumentExceptionSet the maximum number of iterations to be performed in the optimization procedure. If the optimizer did not converge before maxIter iterations the optimization will stop.- Parameters:
maxIter- The maximum number of iterations.- Throws:
java.lang.IllegalArgumentException
-
maxIterations
int maxIterations()
Get the maximum number of iterations allowed before exiting the optimization procedure.- Returns:
- The maximum number of iterations.
-
setPrintLevel
void setPrintLevel(int printLevel) throws java.lang.IllegalArgumentExceptionSet the printout level.- Parameters:
printLevel- The printout level.- Throws:
java.lang.IllegalArgumentException
-
printLevel
int printLevel()
Get the printout level.- Returns:
- the printout level.
-
setTitle
void setTitle(java.lang.String title)
Set the title for the current optimization problem.- Parameters:
title- The title.
-
title
java.lang.String title()
Get the title.- Returns:
- The title.
-
setUseFunctionGradient
void setUseFunctionGradient(boolean useGradient)
Specify if the optimizer has to use the gradient as provided by the IFunction.- Parameters:
useGradient-trueif the Optimizer has to use the IFunction's calculation of the gradient,falseotherwise.
-
useFunctionGradient
boolean useFunctionGradient()
See if the optimizer uses the IFunction's evaluation of the gradient.- Returns:
trueif the optimizer uses the IFunction's evaluation of the gradient.
-
setUseFunctionHessian
void setUseFunctionHessian(boolean useHessian)
Specify if the optimizer has to use the Hessian as provided by the IFunction.- Parameters:
useHessian-trueif the Optimizer has to use the IFunction's calculation of the Hessian,falseotherwise.
-
useFunctionHessian
boolean useFunctionHessian()
See if the optimizer uses the IFunction's evaluation of the Hessian.- Returns:
trueif the optimizer uses the IFunction's evaluation of the Hessian.
-
setStrategy
void setStrategy(int strategy) throws java.lang.IllegalArgumentExceptionSet the strategy to be used by the optimizer in the optimization procedure.- Parameters:
strategy- The strategy.- Throws:
java.lang.IllegalArgumentException
-
strategy
int strategy()
Get the strategy used by the optimizer in the optimization procedure.- Returns:
- The strategy.
-
setMethod
void setMethod(java.lang.String method) throws java.lang.IllegalArgumentExceptionSet the method to be used by the optimizer in the optimization procedure.- Parameters:
method- The method to be adapted.- Throws:
java.lang.IllegalArgumentException
-
method
java.lang.String method()
Get the method used by the optimizer in the optimization procedure.- Returns:
- The method used.
-
-
DMelt 3.0 © DataMelt by jWork.ORG