diff --git a/opfunu/name_based/o_func.py b/opfunu/name_based/o_func.py index 6edeb64..8f83d1f 100644 --- a/opfunu/name_based/o_func.py +++ b/opfunu/name_based/o_func.py @@ -53,7 +53,7 @@ def __init__(self, ndim=None, bounds=None): super().__init__() self.dim_changeable = True self.dim_default = 2 - self.check_ndim_and_bounds(ndim, bounds, np.array([[-5*np.p, 5.*np.pi] for _ in range(self.dim_default)])) + self.check_ndim_and_bounds(ndim, bounds, np.array([[-5*np.pi, 5.*np.pi] for _ in range(self.dim_default)])) self.b = np.array([1, 1.3, 0.8, -0.4, -1.3, 1.6, -0.2, -0.6, 0.5, 1.4, 1, 1.3, 0.8, -0.4, -1.3, 1.6, -0.2, -0.6, 0.5, 1.4]) self.f_global = -1.00846728102 self.x_global = self.b[:self.ndim]