jde: disable debug printing
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
7f4e3baf1a
commit
13aaac9597
@ -173,9 +173,9 @@ func (j *JDE) Run() {
|
|||||||
Max: benchFuncParams.Max(),
|
Max: benchFuncParams.Max(),
|
||||||
}
|
}
|
||||||
|
|
||||||
jDELogger.Printf("running bench \"%s\" for %dD, maxFES: %d\n",
|
// jDELogger.Printf("running bench \"%s\" for %dD, maxFES: %d\n",
|
||||||
j.BenchName, dim, maxFES,
|
// j.BenchName, dim, maxFES,
|
||||||
)
|
// )
|
||||||
|
|
||||||
funcStats.BenchResults = make([]stats.BenchRound, j.BenchMinIters)
|
funcStats.BenchResults = make([]stats.BenchRound, j.BenchMinIters)
|
||||||
|
|
||||||
@ -216,10 +216,6 @@ func (j *JDE) Run() {
|
|||||||
bestResult = r
|
bestResult = r
|
||||||
|
|
||||||
default:
|
default:
|
||||||
jDELogger.Printf("run: %d, bench: %s, %dD, iteration: %d/%d",
|
|
||||||
iter, j.BenchName, dim, i, fesPerIter-1,
|
|
||||||
)
|
|
||||||
|
|
||||||
// call evolve where jDE runs.
|
// call evolve where jDE runs.
|
||||||
j.evolve(pop, &uniDist)
|
j.evolve(pop, &uniDist)
|
||||||
|
|
||||||
|
@ -105,9 +105,9 @@ func (p *Population) Init() {
|
|||||||
}
|
}
|
||||||
uniform.Src = rand.NewSource(p.Seed)
|
uniform.Src = rand.NewSource(p.Seed)
|
||||||
|
|
||||||
jDELogger.Printf("population initialisation - popCount: %d, seed: %d\n",
|
// jDELogger.Printf("population initialisation - popCount: %d, seed: %d\n",
|
||||||
len(p.Population), p.Seed,
|
// len(p.Population), p.Seed,
|
||||||
)
|
// )
|
||||||
|
|
||||||
for i, v := range p.Population {
|
for i, v := range p.Population {
|
||||||
v.CurX = make([]float64, p.Dimen)
|
v.CurX = make([]float64, p.Dimen)
|
||||||
@ -118,8 +118,6 @@ func (p *Population) Init() {
|
|||||||
|
|
||||||
p.Population[i] = v
|
p.Population[i] = v
|
||||||
}
|
}
|
||||||
|
|
||||||
jDELogger.Println("population initialised")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reinit reinitialises all individuals.
|
// Reinit reinitialises all individuals.
|
||||||
|
Loading…
Reference in New Issue
Block a user