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",")","."]
code: def n_clans(self, n_clans: int) -> None:
      if not isinstance(n_clans, int):
          raise e.TypeError("`n_clans` should be an integer")
      if n_clans < 1:
          raise e.ValueError("`n_clans` should be > 0")
  
      self._n_clans = n_clans
  
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 7 for calling the EHO obj's underlying member method code with example usage: obj.n_clans(n_clans) without return types