Addons#

The addons have been originally implemented in the zellij package. An addons, is an object that is linked to another one. It allows to extend some functionnalities of the target without modifying its implementation. The user can graft addons to Variable by using the kwargs in the init function.

Known kwargs is:

class Addon(object=None)[source]

Bases: ABC

Abstract class describing what an addon is. An Addon is an additionnal feature that can be added to a target object. See Variable Addon for addon targeting Variable or Search space Addon targeting sp.

Parameters:

target (Object, default=None) – Object targeted by the addons

target

Object targeted by the addons

Type:

Object, default=None

property target

Variable Addon#

class VarAddon(variable=None)[source]

Bases: Addon

Addons where the target must be of type Variable.

Parameters:

target (Variable, default=None) – Object targeted by the addons

target

Object targeted by the addons

Type:

Variable, default=None

property target

Subclasses#

class VarNeighborhood(neighborhood, variable=None)[source]

Bases: VarAddon

Addons where the target must be of type Variable. Describes what a neighborhood is for a Variable.

Parameters:

target (Variable, default=None) – Object targeted by the addons

target

Object targeted by the addons

Type:

Variable, default=None

property neighborhood

Search space Addon#

class SearchspaceAddon(search_space=None)[source]

Bases: Addon

Addons where the target must be of type sp.

Parameters:

target (sp, default=None) – Object targeted by the addons

target

Object targeted by the addons

Type:

sp, default=None

property target

Subclasses#

class Neighborhood(neighborhood, search_space=None)[source]

Bases: SearchspaceAddon

Addons where the target must be of type sp. Describes what a neighborhood is for a sp.

Parameters:

target (sp, default=None) – Object targeted by the addons

target

Object targeted by the addons

Type:

sp, default=None

property neighborhood
class Operator(search_space=None)[source]

Bases: SearchspaceAddon

Abstract class describing what an operator is for a sp. Addons where the target must be of type sp.

Parameters:

target (sp, default=None) – Object targeted by the addons

target

Object targeted by the addons

Type:

sp, default=None

class Mutator(search_space=None)[source]

Bases: SearchspaceAddon

Abstract class describing what an Mutator is for a sp. Addons where the target must be of type sp.

Parameters:

target (sp, default=None) – Object targeted by the addons

target

Object targeted by the addons

Type:

sp, default=None

class Crossover(search_space=None)[source]

Bases: SearchspaceAddon

Abstract class describing what an MCrossover is for a sp. Addons where the target must be of type sp.

Parameters:

target (sp, default=None) – Object targeted by the addons

target

Object targeted by the addons

Type:

sp, default=None