class_docstr: An Agent class for all optimization techniques.
class_docstr_tok: ["An","Agent","class","for","all","optimization","techniques","."]
docstr: Clips the agent's decision variables to the bounds limits.
docstr_tok: ["Clips","the","agent","'s","decision","variables","to","the","bounds","limits","."]
code: def clip_by_bound(self) -> None:
      """Clips the agent's decision variables to the bounds limits."""
  
      for j, (lb, ub) in enumerate(zip(self.lb, self.ub)):
          self.position[j] = np.clip(self.position[j], lb, ub)
  
imports: import time
  from typing import Dict, List, Optional, Union
  import numpy
  import opytimizer.math.random
  import opytimizer.utils.constant
  import opytimizer.utils.exception
  from opytimizer.utils import logging
label_desc: Use image node_id 19 for calling the Agent obj's underlying member method code with example usage: obj.clip_by_bound() without return types