From 72108d096e128849f578e710a62fb34af2ee2b72 Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Fri, 17 Aug 2018 17:48:04 +0000 Subject: [PATCH] Fixed the bug with non-returning closes #31 --- yabox/algorithms/de.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yabox/algorithms/de.py b/yabox/algorithms/de.py index afb56de..274da0c 100644 --- a/yabox/algorithms/de.py +++ b/yabox/algorithms/de.py @@ -189,7 +189,8 @@ def solve(self, show_progress=False): iterator.n = self.maxiters iterator.refresh() iterator.close() - return self.denormalize(P[idx].reshape(-1, 1)), fitness[idx] + break + return self.denormalize(P[idx].reshape(-1, 1)), fitness[idx] class PDE(DE):