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

Class StandardOptimizerModifying

source code

         object --+    
                  |    
optimizer.Optimizer --+
                      |
                     StandardOptimizerModifying

A standard optimizer, takes a step and finds the best candidate Must give in self.optimalPoint the optimal point after optimization After each iteration the resulting optimization point is modified by a call to a function

Instance Methods [hide private]
 
__init__(self, **kwargs)
Needs to have :
source code
 
iterate(self)
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 (line_search)

Can have :

  • a step modifier, a factor to modulate the step (step_size = 1.)
  • a pre-modifier, that acts on the set of parameters before an iteration (pre_modifier)
  • a post-modifier, that acts on the set of parameters after an iteration (post_modifier)
Overrides: object.__init__

iterate(self)

source code 

Implementation of the optimization. Does one iteration

Overrides: optimizer.Optimizer.iterate