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

Class StandardOptimizer

source code

         object --+    
                  |    
optimizer.Optimizer --+
                      |
                     StandardOptimizer

A standard optimizer, takes a step and finds the best candidate Must give in self.optimalPoint the optimal point after optimization

Instance Methods [hide private]
 
__init__(self, **kwargs)
Needs to have :
source code
 
iterate(self, forceDir=None)
Implementation of the optimization.
source code

Inherited from optimizer.Optimizer: check_arguments, optimize, recordHistory

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 

Needs to have :

  • an object function to optimize (function), alternatively a function ('fun'), gradient ('gradient'), ...
  • a way to get a new point, that is a step (step)
  • a criterion to stop the optimization (criterion)
  • a starting point (x0)
  • a way to find the best point on a line (lineSearch)

Can have :

  • a step modifier, a factor to modulate the step (stepSize = 1.)
Overrides: object.__init__

iterate(self, forceDir=None)

source code 

Implementation of the optimization. Does one iteration. (Optional) Provide known direction to overide step call in 'forceDir'.

Overrides: optimizer.Optimizer.iterate