class_docstr: An EHO class, inherited from Optimizer.
  
  This is the designed class to define EHO-related
  variables and methods.
  
  References:
      G.-G. Wang, S. Deb and L. Coelho. Elephant Herding Optimization.
      International Symposium on Computational and Business Intelligence (2015).
class_docstr_tok: ["An","EHO","class",",","inherited","from","Optimizer",".","This","is","the","designed","class","to","define","EHO-related","variables","and","methods",".","References",":","G.-G.","Wang",",","S.","Deb","and","L.","Coelho",".","Elephant","Herding","Optimization",".","International","Symposium","on","Computational","and","Business","Intelligence","(","2015",")","."]
docstr: Wraps Elephant Herd Optimization over all agents and variables.
  
  Args:
      space: Space containing agents and update-related information.
      function: A Function object that will be used as the objective function.
docstr_tok: ["Wraps","Elephant","Herd","Optimization","over","all","agents","and","variables",".","Args",":","space",":","Space","containing","agents","and","update-related","information",".","function",":","A","Function","object","that","will","be","used","as","the","objective","function","."]
code: def update(self, space: Space, function: Function) -> None:
      """Wraps Elephant Herd Optimization over all agents and variables.
  
      Args:
          space: Space containing agents and update-related information.
          function: A Function object that will be used as the objective function.
  
      """
  
      centers = []
  
      for i in range(self.n_clans):
          clan_agents = self._get_agents_from_clan(space.agents, i)
  
          clan_center = np.mean(
              np.array([agent.position for agent in clan_agents]),
              axis=0,
          )
  
          centers.append(clan_center)
  
      self._updating_operator(space.agents, centers, function)
      self._separating_operator(space.agents)
  
imports: import copy
  from typing import Any, Dict, List, Optional
  import numpy
  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 14 for calling the EHO obj's underlying member method code with example usage: obj.update(space, function) without return types