run: plug in SOMA T3A
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-02-23 18:07:41 +01:00
parent ead8c80e56
commit 6f39c616c0
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

9
run.go

@ -26,6 +26,7 @@ var (
jDE = flag.Bool("jde", false, "run Differential Evolution algorithm with parameter self adaptation") jDE = flag.Bool("jde", false, "run Differential Evolution algorithm with parameter self adaptation")
// run CEC2020 jDE by default. // 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() { func run() {
@ -34,7 +35,7 @@ func run() {
flag.Parse() flag.Parse()
if *generate { if *generate {
if !*jDE && !*c2jDE && !*sHC && !*rS { if !*jDE && !*c2jDE && !*c2SOMAT3A && !*sHC && !*rS {
log.Println("at least one algo needs to be specified, exiting...") log.Println("at least one algo needs to be specified, exiting...")
return return
@ -56,6 +57,12 @@ func run() {
go algo.DoCEC2020jDE(&wg, &m) go algo.DoCEC2020jDE(&wg, &m)
} }
if *c2SOMAT3A {
wg.Add(1)
go algo.DoCEC2020SOMAT3A(&wg, &m)
}
if *rS { if *rS {
wg.Add(1) wg.Add(1)