From 13aaac9597b60628575dc7e002d382bb597ee504 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 9 Feb 2023 03:56:31 +0100 Subject: [PATCH] jde: disable debug printing --- algo/de/jDE.go | 10 +++------- algo/de/population.go | 8 +++----- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/algo/de/jDE.go b/algo/de/jDE.go index 431d964..625a7bc 100644 --- a/algo/de/jDE.go +++ b/algo/de/jDE.go @@ -173,9 +173,9 @@ funcStats := &stats.FuncStats{BenchName: j.BenchName} Max: benchFuncParams.Max(), } - jDELogger.Printf("running bench \"%s\" for %dD, maxFES: %d\n", - j.BenchName, dim, maxFES, - ) + // jDELogger.Printf("running bench \"%s\" for %dD, maxFES: %d\n", + // j.BenchName, dim, maxFES, + // ) funcStats.BenchResults = make([]stats.BenchRound, j.BenchMinIters) @@ -216,10 +216,6 @@ funcStats.BenchResults[iter].Iteration = iter bestResult = r default: - jDELogger.Printf("run: %d, bench: %s, %dD, iteration: %d/%d", - iter, j.BenchName, dim, i, fesPerIter-1, - ) - // call evolve where jDE runs. j.evolve(pop, &uniDist) diff --git a/algo/de/population.go b/algo/de/population.go index 9b276dd..a41ac44 100644 --- a/algo/de/population.go +++ b/algo/de/population.go @@ -105,9 +105,9 @@ func (p *Population) Init() { } uniform.Src = rand.NewSource(p.Seed) - jDELogger.Printf("population initialisation - popCount: %d, seed: %d\n", - len(p.Population), p.Seed, - ) + // jDELogger.Printf("population initialisation - popCount: %d, seed: %d\n", + // len(p.Population), p.Seed, + // ) for i, v := range p.Population { v.CurX = make([]float64, p.Dimen) @@ -118,8 +118,6 @@ func (p *Population) Init() { p.Population[i] = v } - - jDELogger.Println("population initialised") } // Reinit reinitialises all individuals.