Skip to content

Commit

Permalink
fixed error in Ackley
Browse files Browse the repository at this point in the history
  • Loading branch information
TimRoith committed Oct 21, 2024
1 parent a5fcdff commit a3fbc67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cbx/objectives.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def __init__(self, A=20., b=0.2, c=2*np.pi, minimum = None):
self.A=A
self.b=b
self.c=c
self.minima = np.array([[[0,0]]]) if minimum is None else minimum
self.minima = 0 if minimum is None else minimum

def apply(self, x):
d = x.shape[-1]
Expand Down

0 comments on commit a3fbc67

Please sign in to comment.