This commit is contained in:
parent
ead8c80e56
commit
6f39c616c0
11
run.go
11
run.go
@ -25,7 +25,8 @@ 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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user