Package PyDSTool :: Package Toolbox :: Package optimizers :: Package optimizer :: Module optimizer :: Class Optimizer
[hide private]
[frames] | no frames]

Class Optimizer

source code

object --+
         |
        Optimizer
Known Subclasses:

The simple optimizer class This class lacks some intel that must be populated/implemented in the subclasses :

Instance Methods [hide private]
 
__init__(self, **kwargs)
Initialization of the optimizer, saves the function and the criterion to use Needs to have :
source code
 
optimize(self)
Does the optimization, call iterate and returns the optimal set of parameters
source code
 
recordHistory(self, **kwargs)
Function that does nothing, called for saving parameters in the iteration loop, if needed
source code
 
iterate(self)
Does one iteration of the optimization Present here for readability
source code
 
check_arguments(self)
Checks if the given arguments are correct
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, **kwargs)
(Constructor)

source code 

Initialization of the optimizer, saves the function and the criterion to use Needs to have :

  • a function to optimize (function)
  • a criterion to stop the optimization (criterion)

Can have :

  • a step modifier, a factor to modulate the step (stepSize = 1.)
  • a recorder that will be called with the factors used in one iteration step (record = self.recordHistory)
Overrides: object.__init__