Class

breeze.optimize

SpectralProjectedGradient

Related Doc: package optimize

Permalink

class SpectralProjectedGradient[T] extends FirstOrderMinimizer[T, DiffFunction[T]] with Projecting[T] with SerializableLogging

SPG is a Spectral Projected Gradient minimizer; it minimizes a differentiable function subject to the optimum being in some set, given by the projection operator projection

T

vector type

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpectralProjectedGradient
  2. Projecting
  3. FirstOrderMinimizer
  4. SerializableLogging
  5. Serializable
  6. Serializable
  7. Minimizer
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SpectralProjectedGradient(projection: (T) ⇒ T = (t: T) => t, tolerance: Double = 1e-6, suffDec: Double = 1e-4, fvalMemory: Int = 30, alphaMax: Double = 1e10, alphaMin: Double = 1e-10, bbMemory: Int = 10, maxIter: Int = 1, initFeas: Boolean = false, curvilinear: Boolean = false, bbType: Int = 1, maxSrcht: Int = 30)(implicit space: MutableVectorField[T, Double])

    Permalink

    projection

    projection operations

    tolerance

    termination criterion: tolerance for norm of projected gradient

    suffDec

    sufficient decrease parameter

    alphaMax

    longest step

    alphaMin

    shortest step

    bbMemory

    number of history entries for linesearch

    maxIter

    maximum number of iterations

    initFeas

    is the initial guess feasible, or should it be projected?

    curvilinear

    if curvilinear true, do the projection inside line search in place of doing it in chooseDescentDirection

    maxSrcht

    maximum number of iterations inside line search

Type Members

  1. case class History(alphaBB: Double, fvals: IndexedSeq[Double]) extends Product with Serializable

    Permalink
  2. type State = FirstOrderMinimizer.State[T, Info, History]

    Permalink
    Definition Classes
    FirstOrderMinimizer

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def adjust(newX: T, newGrad: T, newVal: Double): (Double, T)

    Permalink
    Attributes
    protected
    Definition Classes
    FirstOrderMinimizer
  5. def adjustFunction(f: DiffFunction[T]): DiffFunction[T]

    Permalink
    Attributes
    protected
    Definition Classes
    FirstOrderMinimizer
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def bbAlpha(s: T, y: T): Double

    Permalink

    From Mark Schmidt's Matlab code if bbType == 1 alpha = (s'*s)/(s'*y); else alpha = (s'*y)/(y'*y);

    From Mark Schmidt's Matlab code if bbType == 1 alpha = (s'*s)/(s'*y); else alpha = (s'*y)/(y'*y);

    Attributes
    protected
  8. val bbType: Int

    Permalink
  9. def calculateObjective(f: DiffFunction[T], x: T, history: History): (Double, T)

    Permalink
    Attributes
    protected
    Definition Classes
    FirstOrderMinimizer
  10. def chooseDescentDirection(state: State, f: DiffFunction[T]): T

    Permalink
    Attributes
    protected
    Definition Classes
    SpectralProjectedGradientFirstOrderMinimizer
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val convergenceCheck: ConvergenceCheck[T]

    Permalink
    Definition Classes
    FirstOrderMinimizer
  13. val curvilinear: Boolean

    Permalink

    if curvilinear true, do the projection inside line search in place of doing it in chooseDescentDirection

  14. def determineStepSize(state: State, f: DiffFunction[T], direction: T): Double

    Permalink
    Attributes
    protected
    Definition Classes
    SpectralProjectedGradientFirstOrderMinimizer
  15. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def infiniteIterations(f: DiffFunction[T], state: State): Iterator[State]

    Permalink
    Definition Classes
    FirstOrderMinimizer
  21. val initFeas: Boolean

    Permalink

    is the initial guess feasible, or should it be projected?

  22. def initialHistory(f: DiffFunction[T], init: T): History

    Permalink
    Attributes
    protected
    Definition Classes
    SpectralProjectedGradientFirstOrderMinimizer
  23. def initialState(f: DiffFunction[T], init: T): State

    Permalink
    Attributes
    protected
    Definition Classes
    FirstOrderMinimizer
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def iterations(f: DiffFunction[T], init: T): Iterator[State]

    Permalink
    Definition Classes
    FirstOrderMinimizer
  26. def logger: LazyLogger

    Permalink
    Attributes
    protected
    Definition Classes
    SerializableLogging
  27. val maxSrcht: Int

    Permalink

    maximum number of iterations inside line search

  28. def minimize(f: DiffFunction[T], init: T): T

    Permalink
    Definition Classes
    FirstOrderMinimizerMinimizer
  29. def minimizeAndReturnState(f: DiffFunction[T], init: T): State

    Permalink
    Definition Classes
    FirstOrderMinimizer
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. def projectedVector(x: T, g: T)(implicit vspace: Module[T, Double]): T

    Permalink
    Definition Classes
    Projecting
  34. val projection: (T) ⇒ T

    Permalink

    projection operations

    projection operations

    Definition Classes
    SpectralProjectedGradientProjecting
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def takeStep(state: State, dir: T, stepSize: Double): T

    Permalink
    Attributes
    protected
    Definition Classes
    SpectralProjectedGradientFirstOrderMinimizer
  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. def updateHistory(newX: T, newGrad: T, newVal: Double, f: DiffFunction[T], oldState: State): History

    Permalink
    Attributes
    protected
    Definition Classes
    SpectralProjectedGradientFirstOrderMinimizer
  39. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Projecting[T]

Inherited from FirstOrderMinimizer[T, DiffFunction[T]]

Inherited from SerializableLogging

Inherited from Serializable

Inherited from Serializable

Inherited from Minimizer[T, DiffFunction[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped