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: Performs the separating operator.
  
  Args:
      agents: List of agents.
      centers: List of centers.
      function: A Function object that will be used as the objective function.
docstr_tok: ["Performs","the","separating","operator",".","Args",":","agents",":","List","of","agents",".","centers",":","List","of","centers",".","function",":","A","Function","object","that","will","be","used","as","the","objective","function","."]
code: def _updating_operator(
      self, agents: List[Agent], centers: np.ndarray, function: Function
  ) -> None:
      """Performs the separating operator.
  
      Args:
          agents: List of agents.
          centers: List of centers.
          function: A Function object that will be used as the objective function.
  
      """
  
      for i in range(self.n_clans):
          clan_agents = self._get_agents_from_clan(agents, i)
          for j, agent in enumerate(clan_agents):
              a = copy.deepcopy(agent)
              r1 = r.generate_uniform_random_number()
  
              if j == 0:
                  # Updates its position (eq. 2)
                  a.position = self.beta * centers[i]
              else:
                  # Updates its position (eq. 1)
                  a.position += (
                      self.alpha
                      * (clan_agents[0].position - a.position)
                      * r1
                  )
              a.clip_by_bound()
  
              a.fit = function(a.position)
              if a.fit < agent.fit:
                  agent.position = copy.deepcopy(a.position)
                  agent.fit = copy.deepcopy(a.fit)
  
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 12 for calling the EHO obj's underlying member method code with example usage: obj._updating_operator(agents, centers, function) without return types