From cf176f054e323c7648fc46f3011d361d45e27884 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 6 Feb 2023 23:26:19 +0100 Subject: [PATCH] cec2020: implement Schwefel func --- bench/cec2020/benchFunctions.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bench/cec2020/benchFunctions.go b/bench/cec2020/benchFunctions.go index 6937f47..47acfe5 100644 --- a/bench/cec2020/benchFunctions.go +++ b/bench/cec2020/benchFunctions.go @@ -43,7 +43,9 @@ func BentCigar(x []float64) float64 { } // Schwefel is the "Shifted and Rotated Schwefel's Function" of CEC2020. -func Schwefel(x []float64) float64 { return 0 } +func Schwefel(x []float64) float64 { + return SchwefelModified(x) +} // LunacekBiRastrigin is the "Shifted and Rotated Lunacek bi-Rastrigin Function" of CEC2020. func LunacekBiRastrigin(x []float64) float64 { return 0 }