cec2020: use exported SearchRange for min/max
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
9d4f0f730c
commit
f2cd8dc003
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user