metaheuristic_designer.operators.factories.swarm module#

Swarm operator registry and factory.

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

Create a swarm operator by name.

Return type:

OperatorFromLambda

Parameters:
methodstr

Key into swarm_ops_map (e.g., "pso").

namestr, optional

Display name; defaults to method.

**kwargs

Forwarded to the operator function.

Returns:
OperatorFromLambda

The wrapped swarm operator.

Parameters:
  • method (str)

  • name (str | None)