Documentation of 'hep.aida.ref.optimizer.AbstractOptimizerConfiguration' Java class
AbstractOptimizerConfiguration
hep.aida.ref.optimizer

Class AbstractOptimizerConfiguration

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int errorDefinition()
      Get the optimizer's error definition.
      int maxIterations()
      Get the maximum number of iterations allowed before exiting the optimization procedure.
      java.lang.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(java.lang.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(java.lang.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.
      java.lang.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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractOptimizerConfiguration

        public AbstractOptimizerConfiguration()
    • Method Detail

      • setErrorDefinition

        public void setErrorDefinition(int errorDefinition)
                                throws java.lang.IllegalArgumentException
        Tell the optmizer what kind of errors to calculate.
        Specified by:
        setErrorDefinition in interface IOptimizerConfiguration
        Parameters:
        errorDefinition - The type of error to be calculated.
        Throws:
        java.lang.IllegalArgumentException
      • setMaxIterations

        public void setMaxIterations(int maxIterations)
        Set 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.
        Specified by:
        setMaxIterations in interface IOptimizerConfiguration
        Parameters:
        maxIterations - The maximum number of iterations.
      • maxIterations

        public int maxIterations()
        Get the maximum number of iterations allowed before exiting the optimization procedure.
        Specified by:
        maxIterations in interface IOptimizerConfiguration
        Returns:
        The maximum number of iterations.
      • setMethod

        public void setMethod(java.lang.String method)
        Set the method to be used by the optimizer in the optimization procedure.
        Specified by:
        setMethod in interface IOptimizerConfiguration
        Parameters:
        method - The method to be adapted.
      • method

        public java.lang.String method()
        Get the method used by the optimizer in the optimization procedure.
        Specified by:
        method in interface IOptimizerConfiguration
        Returns:
        The method used.
      • setPrecision

        public void setPrecision(double precision)
        Set the precision required in the optimizer's calculations. The highest possible is the machine's precision.
        Specified by:
        setPrecision in interface IOptimizerConfiguration
        Parameters:
        precision - The precision.
      • precision

        public double precision()
        Get the internal precision of the Optimizer.
        Specified by:
        precision in interface IOptimizerConfiguration
        Returns:
        The precision.
      • setPrintLevel

        public void setPrintLevel(int printLevel)
        Set the printout level.
        Specified by:
        setPrintLevel in interface IOptimizerConfiguration
        Parameters:
        printLevel - The printout level.
      • setStrategy

        public void setStrategy(int strategy)
        Set the strategy to be used by the optimizer in the optimization procedure.
        Specified by:
        setStrategy in interface IOptimizerConfiguration
        Parameters:
        strategy - The strategy.
      • strategy

        public int strategy()
        Get the strategy used by the optimizer in the optimization procedure.
        Specified by:
        strategy in interface IOptimizerConfiguration
        Returns:
        The strategy.
      • setTitle

        public void setTitle(java.lang.String title)
        Set the title for the current optimization problem.
        Specified by:
        setTitle in interface IOptimizerConfiguration
        Parameters:
        title - The title.
      • setTolerance

        public void setTolerance(double tolerance)
        Set the optimizer's tolerance. The tolerance is used to determine if the optimizer converged to an optimal solution.
        Specified by:
        setTolerance in interface IOptimizerConfiguration
        Parameters:
        tolerance - The tolerance.
      • setUseFunctionGradient

        public void setUseFunctionGradient(boolean useGradient)
        Specify if the optimizer has to use the gradient as provided by the IFunction.
        Specified by:
        setUseFunctionGradient in interface IOptimizerConfiguration
        Parameters:
        useGradient - true if the Optimizer has to use the IFunction's calculation of the gradient, false otherwise.
      • useFunctionGradient

        public boolean useFunctionGradient()
        See if the optimizer uses the IFunction's evaluation of the gradient.
        Specified by:
        useFunctionGradient in interface IOptimizerConfiguration
        Returns:
        true if the optimizer uses the IFunction's evaluation of the gradient.
      • setUseFunctionHessian

        public void setUseFunctionHessian(boolean useHessian)
        Specify if the optimizer has to use the Hessian as provided by the IFunction.
        Specified by:
        setUseFunctionHessian in interface IOptimizerConfiguration
        Parameters:
        useHessian - true if the Optimizer has to use the IFunction's calculation of the Hessian, false otherwise.
      • useFunctionHessian

        public boolean useFunctionHessian()
        See if the optimizer uses the IFunction's evaluation of the Hessian.
        Specified by:
        useFunctionHessian in interface IOptimizerConfiguration
        Returns:
        true if the optimizer uses the IFunction's evaluation of the Hessian.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.