Class State

  • java.lang.Object
    • samer.maths.opt.State
  • Direct Known Subclasses:
    MinimiserBase


    public class State
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      State(Vec x, Functionx func)
      x must have an accessible array
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.StringBuffer append(java.lang.StringBuffer info) 
      double cubic()
      estimated step to minimum using cubic interpolation of current state
      void dispose() 
      void eval2()
      evaluate at P2
      void evaluate()
      evaluate at P1
      double initialStep() 
      void move()
      move P1 to where P2 is now
      double nextStep()
      estimate initial step for line search after turn
      void setSlope()
      evaluate slope at P1 using gradient at P1
      void setSlope2(double s2)
      set slope at P2, assert new slope is negative
      void step(double lambda)
      take step of length lambda from P1 in direction of h, evaluate and store in P2
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • alpha

        public double alpha
      • h

        public double[] h
      • n

        public int n
      • normh

        public double normh
    • Constructor Detail

      • State

        public State(Vec x,
                     Functionx func)
        x must have an accessible array
    • Method Detail

      • dispose

        public void dispose()
      • cubic

        public final double cubic()
        estimated step to minimum using cubic interpolation of current state
      • evaluate

        public final void evaluate()
        evaluate at P1
      • move

        public final void move()
        move P1 to where P2 is now
      • step

        public void step(double lambda)
        take step of length lambda from P1 in direction of h, evaluate and store in P2
      • eval2

        public final void eval2()
        evaluate at P2
      • setSlope

        public final void setSlope()
        evaluate slope at P1 using gradient at P1
      • setSlope2

        public final void setSlope2(double s2)
        set slope at P2, assert new slope is negative
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • initialStep

        public double initialStep()
      • nextStep

        public double nextStep()
        estimate initial step for line search after turn
      • append

        public java.lang.StringBuffer append(java.lang.StringBuffer info)