Magnetic Optimization Algorithm.

class opytimizer.optimizers.science.moa.MOA(params: Optional[Dict[str, Any]] = None)

An MOA class, inherited from Optimizer.

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


M.-H. Tayarani and M.-R. Akbarzadeh. Magnetic-inspired optimization algorithms: Operators and structures. Swarm and Evolutionary Computation (2014).

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

Initialization method.

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

Particle moviment first constant.


Particle moviment second constant.

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

Compiles additional information that is used by this optimizer.

Parameters:space – A Space object containing meta-information.
update(space: opytimizer.core.space.Space) → None

Wraps Magnetic Optimization Algorithm over all agents and variables.

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