class_docstr: A FA class, inherited from Optimizer.
  
  This is the designed class to define FA-related
  variables and methods.
  
  References:
      X.-S. Yang. Firefly algorithms for multimodal optimization.
      International symposium on stochastic algorithms (2009).
class_docstr_tok: ["A","FA","class",",","inherited","from","Optimizer",".","This","is","the","designed","class","to","define","FA-related","variables","and","methods",".","References",":","X.-S.","Yang",".","Firefly","algorithms","for","multimodal","optimization",".","International","symposium","on","stochastic","algorithms","(","2009",")","."]
docstr: Initialization method.
  
  Args:
      params: Contains key-value parameters to the meta-heuristics.
docstr_tok: ["Initialization","method",".","Args",":","params",":","Contains","key-value","parameters","to","the","meta-heuristics","."]
code: def __init__(self, params: Optional[Dict[str, Any]] = None) -> None:
      """Initialization method.
  
      Args:
          params: Contains key-value parameters to the meta-heuristics.
  
      """
  
      logger.info("Overriding class: Optimizer -> FA.")
  
      super(FA, self).__init__()
  
      self.alpha = 0.5
      self.beta = 0.2
      self.gamma = 1.0
  
      self.build(params)
  
      logger.info("Class overrided.")
  
file_path: opytimizer/opytimizer/optimizers/swarm/fa.py
imports: import copy
  from typing import Any, Dict, Optional
  import numpy
  import opytimizer.math.general
  import opytimizer.math.random
  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 1 to create a new FA object from inherited base classes: Optimizer with example: obj = FA(params)