metaheuristic_designer.operators.factories.random module#

Random-generation operator registry and factory.

create_random_operator(method, initializer, encoding=None, name=None, **kwargs)[source]#

Create a random operator that uses an Initializer for fresh values.

Return type:

OperatorFromLambda

Parameters:
methodstr

Key into random_ops_map.

encodingEncoding, optional

Encoding applied to the genotype.

namestr, optional

Display name; defaults to method.

**kwargs

Forwarded to the operator function.

Returns:
OperatorFromLambda

The wrapped random operator.

Parameters: