Skip to main content

FFOA

Module: opytimizer.optimizers.single_objective.swarm.ffoa

A FFOA class, inherited from Optimizer.

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

References: W.-T. Pan. A new Fruit Fly Optimization Algorithm: Taking the financial distress model as an example. Knowledge-Based Systems (2012).

Constructor​

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

Parameters​

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

Methods​

compile​

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

Compiles additional information that is used by this optimizer.

Parameters​

ParameterTypeDefaultDescription
spaceopytimizer.core.space._SingleObjectiveSpaceA Space object containing meta-information.

update​

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

Wraps Fruit-Fly 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.