metaheuristic_designer.operators.factories.mutation module#

Mutation operator registry and factory.

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

Create a mutation operator by name.

Return type:

OperatorFromLambda

Parameters:
methodstr

Key into mutation_ops_map.

encodingEncoding, optional

Encoding applied to the genotype after mutation.

namestr, optional

Display name; defaults to method.

**kwargs

Parameters forwarded to the mutation function (e.g., N, F, distribution).

Returns:
OperatorFromLambda

The wrapped mutation operator.

Parameters:
  • method (str)

  • encoding (Encoding | None)

  • name (str | None)