scalation.minima

GoldenSectionLS

class GoldenSectionLS extends LineSearch

This class performs a line search on f(x) to find a minimal value for f. It requires no derivatives and only one functional evaluation per iteration. A search is conducted from x1 (often 0) to xmax. A guess for xmax must be given, but can be made larger during the expansion phase, that occurs before the recursive golden section search is called. It works on scalar functions (see GoldenSectionLSTest). If starting with a vector function f(x), simply define a new function g(y) = x0 + direction * y (see GoldenSectionLSTest2).

Linear Supertypes
LineSearch, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. GoldenSectionLS
  2. LineSearch
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GoldenSectionLS(f: (Double) ⇒ Double)

    f

    the scalar objective function to minimize

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val EPSILON: Double

    Attributes
    protected
    Definition Classes
    LineSearch
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  13. def gsection(left: Boolean, x1: Double, x2: Double, x3: Double, f2: Double): Double

    A recursive golden section search requiring only one functional evaluation per call.

    A recursive golden section search requiring only one functional evaluation per call. It works by comparing two center points x2 (given) and x4 computed.

    left

    whether to search left (true) or right (false) side of last interval

    x1

    the left-most point

    x2

    the center point (.618 across for left and .382 across for right)

    x3

    the right-most point

    f2

    the functional value for the x2 center point

  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def lsearch(xmax: Double = 2., x1: Double = 0.): Double

    Perform an exact Line Search (LS) using the Golden Search Algorithm.

    Perform an exact Line Search (LS) using the Golden Search Algorithm. Two phases are used: an expansion phase (moving the endpoint) to find a down-up pattern, followed by a traditional golden section search.

    xmax

    a rough guess for the right endpoint of the line search

    x1

    the left (smallest) anchor point for the search (usually 0)

  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. def printGolden: Unit

    Print the golden ratio and the golden section.

  21. def search(step: Double = 2.): Double

    Perform an exact Line Search (LS) using the Golden Search Algorithm with defaults.

    Perform an exact Line Search (LS) using the Golden Search Algorithm with defaults.

    step

    the initial step size

    Definition Classes
    GoldenSectionLSLineSearch
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from LineSearch

Inherited from AnyRef

Inherited from Any