fix(cec2020): add Schwefel Modified's missing case
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
1e8b3d2d84
commit
e1fac11ec5
@ -153,6 +153,7 @@ func SchwefelModified(x []float64) float64 {
|
|||||||
|
|
||||||
case zi < -500:
|
case zi < -500:
|
||||||
// g(zi)
|
// g(zi)
|
||||||
|
sum += (math.Mod(math.Abs(zi), 500)-500)*math.Sin(math.Sqrt(math.Abs(math.Mod(math.Abs(zi), 500)-500))) - (math.Pow(zi-500, 2) - 10000*fnx)
|
||||||
|
|
||||||
case math.Abs(zi) <= 500:
|
case math.Abs(zi) <= 500:
|
||||||
// g(zi)
|
// g(zi)
|
||||||
|
Loading…
Reference in New Issue
Block a user