diff --git a/bench/cec2020/benchFunctions.go b/bench/cec2020/benchFunctions.go index b4e5ca4..9359ea6 100644 --- a/bench/cec2020/benchFunctions.go +++ b/bench/cec2020/benchFunctions.go @@ -176,7 +176,7 @@ func Composition1(x []float64) float64 { var sum float64 - var weights []float64 + weights := make([]float64, len(funcs)) for i := range funcs { wi := getWeight(x, o, sigma[i], fnx)