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

Class RestartNotOrthogonalConjugateGradientStep

source code

object --+
         |
        RestartNotOrthogonalConjugateGradientStep

A step decorator that deletes the direction key in the dictionary if the last gradients are not orthogonal enough so that the CG search can be restarted

Instance Methods [hide private]
 
__init__(self, step, orthogonal_coeff=0.1)
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, orthogonal_coeff=0.1)
(Constructor)

source code 

Constructs the decorator

  • step is the step that will be decorated
  • orthogonal_coeff is the orthogonal limit
Overrides: object.__init__