Skip to content

Commit

Permalink
Fix bug Dolan function
Browse files Browse the repository at this point in the history
  • Loading branch information
thieu1995 committed Mar 22, 2024
1 parent 4c7cfdc commit 5735acb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opfunu/name_based/d_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ class Dolan(Benchmark):

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([[-10., 10.] for _ in range(self.dim_default)]))
self.dim_changeable = False
self.dim_default = 5
self.check_ndim_and_bounds(ndim, bounds, np.array([[-100., 100.] for _ in range(self.dim_default)]))
self.f_global = 0.0
self.x_global = np.array([-74.10522498, 44.33511286, 6.21069214, 18.42772233, -16.5839403])

Expand Down

0 comments on commit 5735acb

Please sign in to comment.