code: def rastrigrin(p):
      """
      多峰值函数，也是典型的非线性多模态函数
      -5.12<=xi<=5.12
      在范围内有10n个局部最小值，峰形高低起伏不定跳跃。很难找到全局最优
      has a global minimum at x = 0  where f(x) = 0
      """
      return np.sum(
          [np.square(x) - 10 * np.cos(2 * np.pi * x) + 10 for x in p]
      )
  
file_path: scikit-opt/sko/demo_func.py
imports: import numpy
  from scipy import spatial
label_desc: Use image node_id 6 for calling a global function with example usage: rastrigrin(p) and returns: np