Creator

create(name, base, **kwargs)

Creates a new class named name, which inherits from the base class, and registers it into the global namespace of the creator module. Any optional kwargs provided to this function will be set as attributes of the new class.

Parameters:
  • name (str) – The name of the new class to create.

  • base (type | object) – A type or an object from which to inherit.

  • kwargs (Optional) – One or more keyword arguments to add to the new class as attributes, optional. If a kwarg is an instance, it will be added as a class attribute. If a kwarg is a class, it will be instantiated and added as an instance attribute.

Returns:

Nothing.

Return type:

None

Fitness

alias of Any

FitnessMax

alias of Any

FitnessMin

alias of Any

FitnessMulti

alias of Any

FitnessVaried

alias of Any

Individual

alias of Any

Particle

alias of Any

Population

alias of Any

Strategy

alias of Any

Swarm

alias of Any

Tree

alias of Any