Skip to content

Commit

Permalink
Fix bug OddSquare function
Browse files Browse the repository at this point in the history
  • Loading branch information
thieu1995 committed Mar 22, 2024
1 parent 8ecaa67 commit ea0604a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opfunu/name_based/o_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ea0604a

Please sign in to comment.