Moth-Flame Optimization.

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

A MFO class, inherited from Optimizer.

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


S. Mirjalili. Moth-flame optimization algorithm: A novel nature-inspired heuristic paradigm. Knowledge-Based Systems (2015).

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

Initialization method.

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

Spiral constant.

update(space: opytimizer.core.space.Space, iteration: int, n_iterations: int) → None

Wraps Moth-Flame Optimization over all agents and variables.

  • space – Space containing agents and update-related information.
  • iteration – Current iteration.
  • n_iterations – Maximum number of iterations.