scalation.minima

WolfeLS

class WolfeLS extends LineSearch

This class performs an inexact line search on f to find a point x that exhibits (1) sufficient decrease (f(x) enough less that f(0)) and (2) the slope at x is less steep than the slope at 0. That is, the line search looks for a value for x satisfying the two Wolfe conditions.

f(x) <= f(0) + c1 * f'(0) * x Wolfe condition 1 (Armijo condition) |f'(x)| <= |c2 * f'(0)| Wolfe condition 2 (Strong version) f'(x) >= c2 * f'(0) Wolfe condition 2 (Weak version, more robust)

It works on scalar functions (see WolfeLSTest). If starting with a vector function f(x), simply define a new function g(y) = x0 + direction * y (see WolfeLSTest2).

Linear Supertypes
LineSearch, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WolfeLS
  2. LineSearch
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WolfeLS(f: (Double) ⇒ Double, c1: Double = 1.0E-4, c2: Double = 0.9)

    f

    the scalar objective function to minimize

    c1

    constant for sufficient decrease (Wolfe condition 1)

    c2

    constant for curvature/slope constraint (Wolfe condition 2)

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[java.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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

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

    Definition Classes
    Any
  15. def lsearch(x0: Double = 1.0, lo0: Double = 0.0, weak: Boolean = true): Double

    Perform an inexact Line Search (LS) on the function 'f' to find a point 'x' that satisfies the Wolfe Conditions 1 and 2.

    Perform an inexact Line Search (LS) on the function 'f' to find a point 'x' that satisfies the Wolfe Conditions 1 and 2.

    x0

    the current point

    lo0

    the lower bound for x

    weak

    whether to use the weak (true) or strong (false) Wolfe conditions

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

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

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

    Definition Classes
    AnyRef
  19. def search(step: Double = 1.0): Double

    Perform an inexact Line Search (LS) using the Wolfe approach with defaults.

    Perform an inexact Line Search (LS) using the Wolfe approach with defaults.

    step

    the initial step size

    Definition Classes
    WolfeLSLineSearch
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LineSearch

Inherited from AnyRef

Inherited from Any

Ungrouped