Module cma :: Class FFWrapper :: Class GlueArguments
[hide private]
[frames] | no frames]

Class GlueArguments

source code

                     object --+    
                              |    
FFWrapper.FitnessTransformation --+
                                  |
                                 FFWrapper.GlueArguments

f = cma.FF2.GlueArguments(cma.fcts.elli, cond=1e4)

>>> import cma
>>> f = cma.FF2.GlueArguments(cma.fcts.elli, cond=1e1)
>>> f([1, 2])  # == 1**2 + 1e1 * 2**2
41.0
Instance Methods [hide private]
 
__init__(self, fitness_function, *args, **kwargs)
fitness_function must be callable (e.g. a function or a callable class instance)
source code
 
__call__(self, x, *args)
identity as default transformation
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, fitness_function, *args, **kwargs)
(Constructor)

source code 
fitness_function must be callable (e.g. a function or a callable class instance)
Overrides: object.__init__
(inherited documentation)

__call__(self, x, *args)
(Call operator)

source code 
identity as default transformation
Overrides: FitnessTransformation.__call__
(inherited documentation)