Skip to main content

FPA

Module: opytimizer.optimizers.single_objective.swarm.fpa

A FPA class, inherited from Optimizer.

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

References: X.-S. Yang. Flower pollination algorithm for global optimization. International conference on unconventional computing and natural computation (2012).

Constructor​

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

Parameters​

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

Methods​

update​

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

Wraps Flower Pollination 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.