cec2020: use exported SearchRange for min/max
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-02-07 22:56:53 +01:00
parent 9d4f0f730c
commit f2cd8dc003
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -123,8 +123,8 @@ func Asy(x []float64, beta float64) {
func newXopt(n int, mu0 float64) []float64 {
gaussDist := &distuv.Uniform{
Src: rand.NewSource(uint64(time.Now().UnixNano())),
Min: searchRangeMin,
Max: searchRangeMax,
Min: SearchRange.Min(),
Max: SearchRange.Max(),
}
tmpvec := make([]float64, n)