Class GoldenSection


  • public class GoldenSection
    extends java.lang.Object
    Optimizes the input to a function of type SingleDoubleValue using the Golden Section method
    • Constructor Summary

      Constructors 
      Constructor Description
      GoldenSection​(double tol, double ftol)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double optimize​(SingleDoubleValue v, double min, double max)
      Optimizes the input
      • Methods inherited from class java.lang.Object

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

      • GoldenSection

        public GoldenSection​(double tol,
                             double ftol)
        Constructor
        Parameters:
        tol - Optimize the inputs to this tolerance
        ftol - Optimize the value to this tolerance
    • Method Detail

      • optimize

        public double optimize​(SingleDoubleValue v,
                               double min,
                               double max)
        Optimizes the input
        Parameters:
        v - The function
        min - The minimum allowed input value
        max - The maximum allowed input value
        Returns:
        Optimized input