class_docstr: An AIWPSO class, inherited from PSO.
  
  This is the designed class to define AIWPSO-related
  variables and methods.
  
  References:
      A. Nickabadi, M. M. Ebadzadeh and R. Safabakhsh.
      A novel particle swarm optimization algorithm with adaptive inertia weight.
      Applied Soft Computing (2011).
class_docstr_tok: ["An","AIWPSO","class",",","inherited","from","PSO",".","This","is","the","designed","class","to","define","AIWPSO-related","variables","and","methods",".","References",":","A.","Nickabadi",",","M.","M.","Ebadzadeh","and","R.","Safabakhsh",".","A","novel","particle","swarm","optimization","algorithm","with","adaptive","inertia","weight",".","Applied","Soft","Computing","(","2011",")","."]
code: def w_max(self, w_max: float) -> None:
      if not isinstance(w_max, (float, int)):
          raise e.TypeError("`w_max` should be a float or integer")
      if w_max < 0:
          raise e.ValueError("`w_max` should be >= 0")
      if w_max < self.w_min:
          raise e.ValueError("`w_max` should be >= `w_min`")
  
      self._w_max = w_max
  
imports: import copy
  import time
  from typing import Any, Dict, List, Optional
  import numpy
  import opytimizer.math.random
  import opytimizer.utils.constant
  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 5 for calling the AIWPSO obj's underlying member method code with example usage: obj.w_max(w_max) without return types