metaheuristic_designer.operators.factories.permutation module#

Permutation operator registry and factory.

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

Create a permutation operator by name.

Return type:

OperatorFromLambda

Parameters:
methodstr

Key into permutation_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 permutation operator.

Parameters:
  • method (str)

  • encoding (Encoding | None)

  • name (str | None)