class_docstr: An MOA class, inherited from Optimizer.
  
  This is the designed class to define MOA-related
  variables and methods.
  
  References:
      M.-H. Tayarani and M.-R. Akbarzadeh. Magnetic-inspired optimization algorithms: Operators and structures.
      Swarm and Evolutionary Computation (2014).
class_docstr_tok: ["An","MOA","class",",","inherited","from","Optimizer",".","This","is","the","designed","class","to","define","MOA-related","variables","and","methods",".","References",":","M.-H.","Tayarani","and","M.-R.","Akbarzadeh",".","Magnetic-inspired","optimization","algorithms",":","Operators","and","structures",".","Swarm","and","Evolutionary","Computation","(","2014",")","."]
code: def alpha(self, alpha: float) -> None:
      if not isinstance(alpha, (float, int)):
          raise e.TypeError("`alpha` should be a float or integer")
      if alpha < 0:
          raise e.ValueError("`alpha` should be >= 0")
  
      self._alpha = alpha
  
file_path: opytimizer/opytimizer/optimizers/science/moa.py
imports: from typing import Any, Dict, Optional
  import numpy
  import opytimizer.math.general
  import opytimizer.math.random
  import opytimizer.utils.constant
  import opytimizer.utils.exception
  from opytimizer.core import Optimizer
  from opytimizer.core.space import Space
  from opytimizer.utils import logging
label_desc: Use image node_id 3 for calling the MOA obj's underlying member method code with example usage: obj.alpha(alpha) without return types