class_docstr: A JS class, inherited from Optimizer.
  
  This is the designed class to define JS-related
  variables and methods.
  
  References:
      J.-S. Chou and D.-N. Truong. A novel metaheuristic optimizer inspired by behavior of jellyfish in ocean.
      Applied Mathematics and Computation (2020).
class_docstr_tok: ["A","JS","class",",","inherited","from","Optimizer",".","This","is","the","designed","class","to","define","JS-related","variables","and","methods",".","References",":","J.-S.","Chou","and","D.-N.","Truong",".","A","novel","metaheuristic","optimizer","inspired","by","behavior","of","jellyfish","in","ocean",".","Applied","Mathematics","and","Computation","(","2020",")","."]
docstr: Initializes a set of agents using a logistic chaotic map.
  
  Args:
      agents: List of agents.
docstr_tok: ["Initializes","a","set","of","agents","using","a","logistic","chaotic","map",".","Args",":","agents",":","List","of","agents","."]
code: def _initialize_chaotic_map(self, agents: List[Agent]) -> None:
      """Initializes a set of agents using a logistic chaotic map.
  
      Args:
          agents: List of agents.
  
      """
  
      for i, agent in enumerate(agents):
          if i == 0:
              for j in range(agent.n_variables):
                  agent.position[j] = r.generate_uniform_random_number(
                      size=agent.n_dimensions
                  )
          else:
              for j in range(agent.n_variables):
                  # Calculates its position using logistic chaotic map (eq. 18)
                  agent.position[j] = (
                      self.eta
                      * agents[i - 1].position[j]
                      * (1 - agents[i - 1].position[j])
                  )
  
imports: 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.space import Space
  from opytimizer.utils import logging
label_desc: Use image node_id 8 for calling the JS obj's underlying member method code with example usage: obj._initialize_chaotic_map(agents) without return types