Skip to main content

WAOA

Module: opytimizer.optimizers.single_objective.swarm.waoa

A WAOA class, inherited from Optimizer.

This is the designed class to define WAOA-related variables and methods.

References: P. Trojovský and M. Dehghani. A new bio-inspired metaheuristic algorithm for solving optimization problems based on walruses behavior. Scientific Reports (2023).

Constructor​

WAOA(params: Optional[Dict[str, Any]] = None) -> None

Parameters​

ParameterTypeDefaultDescription
paramsOptional[Dict[str, Any]]None—

Methods​

evaluate​

evaluate(self, space: opytimizer.core.space._SingleObjectiveSpace) -> None

Evaluates the search space according to the objective function.

Parameters​

ParameterTypeDefaultDescription
spaceopytimizer.core.space._SingleObjectiveSpaceA Space object that will be evaluated.

update​

update(self, space: opytimizer.core.space._SingleObjectiveSpace, function: opytimizer.core.function.Function, iteration: int) -> None

Wraps Walrus Optimization Algorithm over all agents and variables.

Parameters​

ParameterTypeDefaultDescription
spaceopytimizer.core.space._SingleObjectiveSpaceSpace containing agents and update-related information.
functionopytimizer.core.function.FunctionA Function object that will be used as the objective function.
iterationintCurrent iteration.