cec2020: add Functions, FuncNames
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e310303ff7
commit
8f398a9102
@ -10,7 +10,34 @@ extern double *OShift,*M,*y,*z,*x_bound;
|
|||||||
extern int ini_flag,n_flag,func_flag,*SS;
|
extern int ini_flag,n_flag,func_flag,*SS;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Functions = map[string]func([]float64) float64{}
|
// Functions is a string-func map of function names and specific bench funcs
|
||||||
|
// for easier iterable access.
|
||||||
|
var Functions = map[string]func([]float64) float64{
|
||||||
|
"Bent Cigar": BentCigar,
|
||||||
|
"Schwefel Modified": Schwefel,
|
||||||
|
"Lunacek Bi-Rastrigin": LunacekBiRastrigin,
|
||||||
|
"Rosenbrock-Griewank": RosenbrockGriewank,
|
||||||
|
"Hybrid1": Hybrid1,
|
||||||
|
"Hybrid2": Hybrid2,
|
||||||
|
"Hybrid3": Hybrid3,
|
||||||
|
"Composition1": Composition1,
|
||||||
|
"Composition2": Composition2,
|
||||||
|
"Composition3": Composition3,
|
||||||
|
}
|
||||||
|
|
||||||
|
// FuncNames represents a numbered list of function name.
|
||||||
|
var FuncNames = map[int]string{
|
||||||
|
0: "Bent Cigar",
|
||||||
|
1: "Schwefel Modified",
|
||||||
|
2: "Lunacek Bi-Rastrigin",
|
||||||
|
3: "Rosenbrock-Griewank",
|
||||||
|
4: "Hybrid1",
|
||||||
|
5: "Hybrid2",
|
||||||
|
6: "Hybrid3",
|
||||||
|
7: "Composition1",
|
||||||
|
8: "Composition2",
|
||||||
|
9: "Composition3",
|
||||||
|
}
|
||||||
|
|
||||||
// SearchRange specifies the CEC2020 search range.
|
// SearchRange specifies the CEC2020 search range.
|
||||||
var SearchRange = bench.NewfuncParams(searchRangeMin, searchRangeMax)
|
var SearchRange = bench.NewfuncParams(searchRangeMin, searchRangeMax)
|
||||||
|
Loading…
Reference in New Issue
Block a user