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

Class FixVariables

source code

                     object --+        
                              |        
FFWrapper.FitnessTransformation --+    
                                  |    
     FFWrapper.TransformSearchSpace --+
                                      |
                                     FFWrapper.FixVariables

fix variables to given values, thereby reducing the dimensionality of the preimage.

The constructor takes index_value_pairs as dict or list of pairs as input and returns a function with smaller preimage space than f.

Details: this might replace the fixed_variables option in CMAOptions in future, but hasn't been tested yet.

Instance Methods [hide private]
 
__init__(self, f, index_value_pairs)
f has
source code
 
insert_variables(self, x) source code

Inherited from FitnessTransformation: __call__

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, f, index_value_pairs)
(Constructor)

source code 
f has
Overrides: object.__init__