From a3a2be65244313c8b5bec28988b39b234f18579d Mon Sep 17 00:00:00 2001 From: Ximsa Date: Wed, 13 Oct 2021 15:36:17 +0200 Subject: [PATCH] fixed benchmark --- src/benchmark/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/benchmark/core.clj b/src/benchmark/core.clj index 1139b9b..d757b6a 100644 --- a/src/benchmark/core.clj +++ b/src/benchmark/core.clj @@ -5,7 +5,7 @@ (require '[clojure.pprint :as pp]) (defn getBest [] - (last (sort-by psa/fitness (map deref psa/groupBest)))) + (:position (last (sort-by :fitness (map deref psa/groupBest))))) ;;---------------------------- Benchmark for analytical test function h1 (def dim 2) ;; Dimension