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",")","."]
docstr: Compiles additional information that is used by this optimizer.
  
  Args:
      space: A Space object containing meta-information.
docstr_tok: ["Compiles","additional","information","that","is","used","by","this","optimizer",".","Args",":","space",":","A","Space","object","containing","meta-information","."]
code: def compile(self, space: Space) -> None:
      """Compiles additional information that is used by this optimizer.
  
      Args:
          space: A Space object containing meta-information.
  
      """
  
      if not np.sqrt(space.n_agents).is_integer():
          raise e.SizeError("`n_agents` should have a perfect square")
  
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 6 for calling the MOA obj's underlying member method code with example usage: obj.compile(space) without return types