Package PyDSTool :: Package Toolbox :: Package optimizers :: Package line_search :: Module fixed_last_step_modifier :: Class FixedLastStepModifier
[hide private]
[frames] | no frames]

Class FixedLastStepModifier

source code

object --+
         |
        FixedLastStepModifier

Overrides the default step size and replaces it with a factor times the last one

Instance Methods [hide private]
 
__init__(self, line_search, alpha_factor=2.0, **kwargs)
Needs to have :
source code
 
__call__(self, origin, function, state, **kwargs)
Returns a good candidate Parameters :
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, line_search, alpha_factor=2.0, **kwargs)
(Constructor)

source code 

Needs to have :

  • the decorated line search (line_search)

Can have :

  • an alpha modifier, a factor to modulate the last step length (alpha_factor = 2.)
Overrides: object.__init__

__call__(self, origin, function, state, **kwargs)
(Call operator)

source code 

Returns a good candidate Parameters :

  • origin is the origin of the search
  • function is the function to minimize
  • state is the state of the optimizer