From f2cd8dc003a3c0a6d4f3796184b81d38c921eaa4 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 7 Feb 2023 22:56:53 +0100 Subject: [PATCH] cec2020: use exported SearchRange for min/max --- bench/cec2020/helperFunctions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/cec2020/helperFunctions.go b/bench/cec2020/helperFunctions.go index bf32007..6de69ad 100644 --- a/bench/cec2020/helperFunctions.go +++ b/bench/cec2020/helperFunctions.go @@ -123,8 +123,8 @@ func Asy(x []float64, beta float64) { func newXopt(n int, mu0 float64) []float64 { gaussDist := &distuv.Uniform{ Src: rand.NewSource(uint64(time.Now().UnixNano())), - Min: searchRangeMin, - Max: searchRangeMax, + Min: SearchRange.Min(), + Max: SearchRange.Max(), } tmpvec := make([]float64, n)