class_docstr: A FOA class, inherited from Optimizer.
  
  This is the designed class to define FOA-related
  variables and methods.
  
  References:
      M. Ghaemi, Mohammad-Reza F.-D. Forest Optimization Algorithm.
      Expert Systems with Applications (2014).
class_docstr_tok: ["A","FOA","class",",","inherited","from","Optimizer",".","This","is","the","designed","class","to","define","FOA-related","variables","and","methods",".","References",":","M.","Ghaemi",",","Mohammad-Reza","F.-D.","Forest","Optimization","Algorithm",".","Expert","Systems","with","Applications","(","2014",")","."]
docstr: Performs the global seeding.
  
  Args:
      space: A Space object containing meta-information.
      function: A Function object that will be used as the objective function.
      candidate: Candidate trees.
docstr_tok: ["Performs","the","global","seeding",".","Args",":","space",":","A","Space","object","containing","meta-information",".","function",":","A","Function","object","that","will","be","used","as","the","objective","function",".","candidate",":","Candidate","trees","."]
code: def _global_seeding(
      self, space: Space, function: Function, candidate: List[Agent]
  ) -> None:
      """Performs the global seeding.
  
      Args:
          space: A Space object containing meta-information.
          function: A Function object that will be used as the objective function.
          candidate: Candidate trees.
  
      """
  
      new_agents = []
  
      n_candidate = int(len(candidate) * self.transfer_rate)
      for agent in candidate[:n_candidate]:
          a = copy.deepcopy(agent)
  
          for _ in range(self.GSC):
              j = r.generate_integer_random_number(high=a.n_variables)
  
              a.position[j] += r.generate_uniform_random_number(
                  a.lb[j], a.ub[j]
              )
              a.clip_by_bound()
  
              a.fit = function(a.position)
  
              new_agents.append(a)
  
      space.agents += new_agents
  
      self.age += [0] * len(new_agents)
  
imports: import copy
  from typing import Any, Dict, List, Optional
  import opytimizer.math.random
  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 17 for calling the FOA obj's underlying member method code with example usage: obj._global_seeding(space, function, candidate) without return types