From a3fbc67d5115323d266bcac72dc52b91aabc2a55 Mon Sep 17 00:00:00 2001 From: TimRoith Date: Mon, 21 Oct 2024 21:15:17 +0200 Subject: [PATCH] fixed error in Ackley --- cbx/objectives.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbx/objectives.py b/cbx/objectives.py index 4c4fc18..fb44b64 100644 --- a/cbx/objectives.py +++ b/cbx/objectives.py @@ -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]