Package PyDSTool :: Package Toolbox :: Package optimizers :: Package criterion :: Module criteria :: Class GradientCriterion
[hide private]
[frames] | no frames]

Class GradientCriterion

source code

object --+
         |
        GradientCriterion

The gradient criterion stops the optimization when the gradient at the current point is less that a given tolerance

Instance Methods [hide private]
 
__init__(self, gtol, weight=None)
Initializes the criterion with an error fraction and the weight assigned for each parameter
source code
 
__call__(self, state, **kwargs)
Computes the stopping criterion
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, gtol, weight=None)
(Constructor)

source code 

Initializes the criterion with an error fraction and the weight assigned for each parameter

Overrides: object.__init__