Skip to main content

GOA

Module: opytimizer.optimizers.single_objective.swarm.goa

A GOA class, inherited from Optimizer.

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

References: S. Saremi, S. Mirjalili and A. Lewis. Grasshopper Optimisation Algorithm: Theory and application. Advances in Engineering Software (2017).

Constructor​

GOA(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, iteration: int, n_iterations: int) -> None

Wraps Grasshopper 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.
n_iterationsintMaximum number of iterations.