docstr: prey
  :param idx_individual:
  :return:
docstr_tok: ["prey",":","param","idx_individual",":",":","return",":"]
code: def prey(self, idx_individual):
      """
      prey
      :param idx_individual:
      :return:
      """
      for try_num in range(self.max_try_num):
          r = 2 * np.random.rand(self.n_dim) - 1
          x_target = self.X[idx_individual, :] + self.visual * r
          if self.func(x_target) < self.Y[idx_individual]:  # 捕食成功
              self.move_to_target(idx_individual, x_target)
              return None
      # 捕食 max_try_num 次后仍不成功，就调用 move 算子
      self.move(idx_individual)
  
file_path: scikit-opt/sko/AFSA.py
imports: import numpy
  from scipy import spatial
label_desc: Use image node_id 4 for calling the AFSA obj's underlying member method code with example usage: obj.prey(idx_individual) and returns: None