diff --git a/algo/de/jDE.go b/algo/de/jDE.go index a1c7253..7855d75 100644 --- a/algo/de/jDE.go +++ b/algo/de/jDE.go @@ -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