go(de): declare initialised after pop.Init()
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
8f55d80731
commit
86533bdefe
@ -101,11 +101,14 @@ func (j *JDE) Init(generations, mutStrategy, adptScheme, np int, f, cr float64,
|
||||
j.Dimensions = dimensions
|
||||
j.BenchName = bench
|
||||
j.ch = ch
|
||||
j.initialised = true
|
||||
|
||||
pop := newPopulation(bench, j.NP)
|
||||
|
||||
pop.Init()
|
||||
|
||||
j.Population = pop
|
||||
|
||||
j.initialised = true
|
||||
}
|
||||
|
||||
// InitAndRun initialises the jDE algorithm, performs sanity checks on the
|
||||
|
Loading…
Reference in New Issue
Block a user