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 local seeding on zero-aged trees.
  
  Args:
      space: A Space object containing meta-information.
      function: A Function object that will be used as the objective function.
docstr_tok: ["Performs","the","local","seeding","on","zero-aged","trees",".","Args",":","space",":","A","Space","object","containing","meta-information",".","function",":","A","Function","object","that","will","be","used","as","the","objective","function","."]
code: def _local_seeding(self, space: Space, function: Function) -> None:
      """Performs the local seeding on zero-aged trees.
  
      Args:
          space: A Space object containing meta-information.
          function: A Function object that will be used as the objective function.
  
      """
  
      new_agents = []
      for i, agent in enumerate(space.agents):
          if self.age[i] == 0:
              for _ in range(self.LSC):
                  child = copy.deepcopy(agent)
  
                  j = r.generate_integer_random_number(
                      high=child.n_variables
                  )
                  child.position[j] += r.generate_uniform_random_number(
                      child.lb[j], child.ub[j]
                  )
                  child.clip_by_bound()
  
                  child.fit = function(child.position)
  
                  new_agents.append(child)
  
      self.age = [age + 1 for age in self.age]
  
      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 15 for calling the FOA obj's underlying member method code with example usage: obj._local_seeding(space, function) without return types