Options
All
  • Public
  • Public/Protected
  • All
Menu

Base class for line search

Hierarchy

Implements

Index

Constructors

constructor

  • Parameters

    • Default value eps: Real = 0

    Returns LineSearch

Properties

Protected _gradient

_gradient: Real[]

Protected _qpt

_qpt: Real

Protected _qt

_qt: Real

Protected _searchDirection

_searchDirection: Real[]

Protected _succeed

_succeed: boolean

Protected _xtd

_xtd: Real[]

Accessors

searchDirection

  • get searchDirection(): Real[]
  • set searchDirection(v: Real[]): void
  • current value of the search direction

    Returns Real[]

  • current value of the search direction

    Parameters

    Returns void

Methods

f

  • operator

    () Perform line search

    Parameters

    Returns Real

lastFunctionValue

  • lastFunctionValue(): Real
  • return last cost function value

    Returns Real

lastGradient

  • lastGradient(): Real[]
  • return last gradient

    Returns Real[]

lastGradientNorm2

  • lastGradientNorm2(): Real
  • return square norm of last gradient

    Returns Real

lastX

  • return last x value

    Returns Real[]

succeed

  • succeed(): boolean
  • Returns boolean

update

  • Parameters

    Returns Real