Module barecmaes2 :: Class OOOptimizer
[hide private]
[frames] | no frames]

Class OOOptimizer

source code

object --+
         |
        OOOptimizer
Known Subclasses:

"abstract" base class for an OO optimizer interface.
Instance Methods [hide private]
 
__init__(self, xstart, **more_kwargs)
abstract method, xstart is a mandatory argument
source code
 
ask(self)
abstract method, AKA get, deliver new candidate solution(s), a list of "vectors"
source code
 
tell(self, solutions, function_values)
abstract method, AKA update, prepare for next iteration
source code
 
stop(self)
abstract method, return satisfied termination conditions in a dictionary like {'termination reason':value, ...}, for example {'tolfun':1e-12}, or the empty dictionary {}. The implementation of stop() should prevent an infinite loop.
source code
 
result(self)
abstract method, return (x, f(x), ...), that is the minimizer, its function value, ...
source code
 
disp(self, verbosity_modulo=1)
display of some iteration info
source code
 
optimize(self, objectivefct, iterations=None, min_iterations=1, args=(), verb_disp=20, logger=None)
iterate at least min_iterations and at most iterations over OOOptimizer self using objective function objectivefct. Prints current information every verb_disp, uses OptimDataLogger logger, and returns self.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, xstart, **more_kwargs)
(Constructor)

source code 
abstract method, xstart is a mandatory argument
Overrides: object.__init__