From 6f39c616c0ad19877d7fe99e9668f70e370bd2b3 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 23 Feb 2023 18:07:41 +0100 Subject: [PATCH] run: plug in SOMA T3A --- run.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/run.go b/run.go index 8747cc5..e151bf7 100644 --- a/run.go +++ b/run.go @@ -25,7 +25,8 @@ var ( jDE = flag.Bool("jde", false, "run Differential Evolution algorithm with parameter self adaptation") // run CEC2020 jDE by default. - c2jDE = flag.Bool("c2jde", true, "run CEC2020 version of the Differential Evolution algorithm with parameter self adaptation") + c2jDE = flag.Bool("c2jde", true, "run CEC2020 version of the Differential Evolution algorithm with parameter self adaptation") + c2SOMAT3A = flag.Bool("c2somat3a", false, "run CEC2020 version of the SOMA Team-to-Team Adaptive (T3A)") ) func run() { @@ -34,7 +35,7 @@ func run() { flag.Parse() if *generate { - if !*jDE && !*c2jDE && !*sHC && !*rS { + if !*jDE && !*c2jDE && !*c2SOMAT3A && !*sHC && !*rS { log.Println("at least one algo needs to be specified, exiting...") return @@ -56,6 +57,12 @@ func run() { go algo.DoCEC2020jDE(&wg, &m) } + if *c2SOMAT3A { + wg.Add(1) + + go algo.DoCEC2020SOMAT3A(&wg, &m) + } + if *rS { wg.Add(1)