From e006d104a9133b1f1cfca3f29b591dac24b2c676 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 9 Feb 2023 23:13:57 +0100 Subject: [PATCH] fix(jDE): correct recombination w/ mutant --- algo/cec2020/jDE.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/algo/cec2020/jDE.go b/algo/cec2020/jDE.go index 082cf90..79ffdc3 100644 --- a/algo/cec2020/jDE.go +++ b/algo/cec2020/jDE.go @@ -405,6 +405,8 @@ func (j *JDE) evolve(pop *Population, uniDist *distuv.Uniform) { for k := 0; k < pop.Dimen; k++ { if crossPoints[k] { trial[k] = currentIndividual.CurX[k] + } else { + trial[k] = mutant[k] } }