Simplified Swarm Optimization.

class opytimizer.optimizers.swarm.sso.SSO(params: Optional[Dict[str, Any]] = None)

A SSO class, inherited from Optimizer.

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


C. Bae et al. A new simplified swarm optimization (SSO) using exchange local search scheme. International Journal of Innovative Computing, Information and Control (2012).

__init__(params: Optional[Dict[str, Any]] = None) → None

Initialization method.

Parameters:params – Contains key-value parameters to the meta-heuristics.

Weighing constant.


Local constant.


Global constant.


Array of local positions.

compile(space: opytimizer.core.space.Space) → None

Compiles additional information that is used by this optimizer.

Parameters:space – A Space object containing meta-information.
evaluate(space: opytimizer.core.space.Space, function: opytimizer.core.function.Function) → None

Evaluates the search space according to the objective function.

  • space – A Space object that will be evaluated.
  • function – A Function object that will be used as the objective function.
update(space: opytimizer.core.space.Space) → None

Wraps Simplified Swarm Optimization over all agents and variables.

Parameters:space – Space containing agents and update-related information.