Skip to content

Commit

Permalink
Fix bug LennardJones function
Browse files Browse the repository at this point in the history
  • Loading branch information
thieu1995 committed Mar 22, 2024
1 parent 307aa9a commit 37ccc6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opfunu/name_based/l_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def __init__(self, ndim=None, bounds=None):
raise ValueError("LennardJones dimensions must be in (6, 60)")
super().__init__()
self.dim_changeable = True
self.dim_default = 2
self.check_ndim_and_bounds(ndim, bounds, np.array([[-4., 1.] for _ in range(self.dim_default)]))
self.dim_default = 6
self.check_ndim_and_bounds(ndim, bounds, np.array([[-4., 4.] for _ in range(self.dim_default)]))
self.minima = [-1.0, -3.0, -6.0, -9.103852, -12.712062,
-16.505384, -19.821489, -24.113360, -28.422532,
-32.765970, -37.967600, -44.326801, -47.845157,
Expand Down

0 comments on commit 37ccc6d

Please sign in to comment.