Documentation of 'edu.stanford.rsl.jpop.FunctionOptimizer' Java class
FunctionOptimizer
edu.stanford.rsl.jpop

Class FunctionOptimizer



  • public class FunctionOptimizer
    extends java.lang.Object
    • Constructor Detail

      • FunctionOptimizer

        public FunctionOptimizer(int dimension)
      • FunctionOptimizer

        public FunctionOptimizer()
    • Method Detail

      • setFunctionAssembler

        public void setFunctionAssembler(FunctionAssembler assembler)
        Sets a new FunctionAssembler for the optimization process. Default setting is AdditiveFunctionAssembler.
        Parameters:
        assembler -
      • setFunctionController

        public void setFunctionController(FunctionController controller)
        Sets a new FunctionController. Defaults to ParallelFunctionController. In rare cases the overhead caused by the parallel execution may reduce the actual execution time. In this case use a SimpleFunctionController instead.
        Parameters:
        controller -
      • optimizeFunction

        public double[] optimizeFunction(OptimizableFunction function)
        Method will optimize the given function using the current settings of the FunctionOptimizer. Note that if you set the OptimizationMode to Gradient or Hessian, the OptimizableFunction must implement GradientOptimizableFunction or HessianOptmizableFunction respectively.
        Parameters:
        function -
        Returns:
      • setDimension

        public void setDimension(int dimension)
      • setInitialX

        public void setInitialX(double[] x)
      • getOptimum

        public double[] getOptimum()
      • getGradientAtOptimum

        public double[] getGradientAtOptimum()
      • getFunctionAtOptimum

        public double getFunctionAtOptimum()
      • getHessianAtOptimum

        public double[][] getHessianAtOptimum()
      • getTerminationCode

        public FunctionOptimizer.TerminationCode getTerminationCode()
        returns the TerminationCode of the Optimization process. It should be checked to determine, whether the optimization was successful.
        Returns:
        the TermininationCode

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.