ABC
Module: opytimizer.optimizers.single_objective.swarm.abc
An ABC class, inherited from Optimizer.
This is the designed class to define ABC-related variables and methods.
References: D. Karaboga and B. Basturk. A powerful and efficient algorithm for numerical function optimization: Artificial bee colony (ABC) algorithm. Journal of Global Optimization (2007).
Constructor
ABC(params: Optional[Dict[str, Any]] = None) -> None
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
params | Optional[Dict[str, Any]] | None | — |
Methods
compile
compile(self, space: opytimizer.core.space._SingleObjectiveSpace) -> None
Compiles additional information that is used by this optimizer.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
space | opytimizer.core.space._SingleObjectiveSpace | A Space object containing meta-information. |
update
update(self, space: opytimizer.core.space._SingleObjectiveSpace, function: opytimizer.core.function.Function) -> None
Wraps Artificial Bee Colony over all agents and variables.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
space | opytimizer.core.space._SingleObjectiveSpace | Space containing agents and update-related information. | |
function | opytimizer.core.function.Function | A Function object that will be used as the objective function. |