Skip to main content

BPSO

Module: opytimizer.optimizers.single_objective.boolean.bpso

A BPSO class, inherited from Optimizer.

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

References: F. Afshinmanesh, A. Marandi and A. Rahimi-Kian. A Novel Binary Particle Swarm Optimization Method Using Artificial Immune System. IEEE International Conference on Smart Technologies (2005).

Constructor​

BPSO(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.

evaluate​

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

Evaluates the search space according to the objective function.

Parameters​

ParameterTypeDefaultDescription
spaceopytimizer.core.space._SingleObjectiveSpaceA Space object that will be evaluated.
functionopytimizer.core.function.FunctionA Function object that will be used as the objective function.

update​

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

Wraps Boolean Particle Swarm Optimization over all agents and variables.

Parameters​

ParameterTypeDefaultDescription
spaceopytimizer.core.space._SingleObjectiveSpaceSpace containing agents and update-related information.