Class LimitedMemoryBFGS

  • All Implemented Interfaces:

    public class LimitedMemoryBFGS
    extends java.lang.Object
    implements Optimizer
    • Method Detail

      • setLineOptimizer

        public void setLineOptimizer​(LineOptimizer.ByGradient lineOpt)
        Sets the LineOptimizer.ByGradient to use in L-BFGS optimization.
        lineOpt - line optimizer for L-BFGS
      • setTolerance

        public void setTolerance​(double newtol)
      • getIteration

        public int getIteration()
      • optimize

        public boolean optimize()
        Specified by:
        optimize in interface Optimizer
      • optimize

        public boolean optimize​(int numIterations)
        Specified by:
        optimize in interface Optimizer
      • reset

        public void reset()
        Resets the previous gradients and values that are used to approximate the Hessian. NOTE - If the Optimizable object is modified externally, this method should be called to avoid IllegalStateExceptions.