class_docstr: An GA class, inherited from Optimizer.
  
  This is the designed class to define GA-related
  variables and methods.
  
  References:
      M. Mitchell. An introduction to genetic algorithms. MIT Press (1998).
class_docstr_tok: ["An","GA","class",",","inherited","from","Optimizer",".","This","is","the","designed","class","to","define","GA-related","variables","and","methods",".","References",":","M.","Mitchell",".","An","introduction","to","genetic","algorithms",".","MIT","Press","(","1998",")","."]
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.
  
      """
  
      super(GA, self).__init__()
  
      self.p_selection = 0.75
      self.p_mutation = 0.25
      self.p_crossover = 0.5
  
      self.build(params)
  
      logger.info("Class overrided.")
  
imports: import copy
  from typing import Any, Dict, List, Optional, Tuple
  import numpy
  import opytimizer.math.distribution
  import opytimizer.math.general
  import opytimizer.math.random
  import opytimizer.utils.constant
  import opytimizer.utils.exception
  from opytimizer.core import Optimizer
  from opytimizer.core.agent import Agent
  from opytimizer.core.function import Function
  from opytimizer.core.space import Space
  from opytimizer.utils import logging
label_desc: Use image node_id 1 to create a new GA object from inherited base classes: Optimizer with example: obj = GA(params)