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: Calculates type A motion (eq. 12).
  
  Args:
      lb: Array of lower bounds.
      ub: Array of upper bounds.
  
  Returns:
      (np.ndarray): A type A motion array.
docstr_tok: ["Calculates","type","A","motion","(","eq",".","12",")",".","Args",":","lb",":","Array","of","lower","bounds",".","ub",":","Array","of","upper","bounds",".","Returns",":","(","np.ndarray",")",":","A","type","A","motion","array","."]
code: def _motion_a(self, lb: np.ndarray, ub: np.ndarray) -> np.ndarray:
      """Calculates type A motion (eq. 12).
  
      Args:
          lb: Array of lower bounds.
          ub: Array of upper bounds.
  
      Returns:
          (np.ndarray): A type A motion array.
  
      """
  
      r1 = r.generate_uniform_random_number()
      motion = (
          self.gamma
          * r1
          * (np.expand_dims(ub, -1) - np.expand_dims(lb, -1))
      )
  
      return motion
  
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 11 for calling the JS obj's underlying member method code with example usage: obj._motion_a(lb, ub) and returns: motion