Package PyDSTool :: Package Toolbox :: Package optimizers :: Package step :: Module restart_conjugate_gradient :: Class RestartPeriodicallyConjugateGradientStep
[hide private]
[frames] | no frames]

Class RestartPeriodicallyConjugateGradientStep

source code

object --+
         |
        RestartPeriodicallyConjugateGradientStep

A step decorator that periodically deletes the direction key in the dictionary so that the CG search can be restarted

Instance Methods [hide private]
 
__init__(self, step, iteration_period=10)
Constructs the decorator
source code
 
__call__(self, function, point, state)
Computes a step based on a function and a point
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, step, iteration_period=10)
(Constructor)

source code 

Constructs the decorator

  • step is the step that will be decorated
  • iteration_period is the number of iteration between the deletion
Overrides: object.__init__