From c4efcbb103291e6c20529a7269df3121824a6d37 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 21 Feb 2023 21:41:44 +0100 Subject: [PATCH] ga/population: rm unused variables --- algo/ga/population.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/algo/ga/population.go b/algo/ga/population.go index cd72f2a..e4dcd6f 100644 --- a/algo/ga/population.go +++ b/algo/ga/population.go @@ -22,8 +22,6 @@ type ( // PopulationIndividual represents a single population individual. type PopulationIndividual struct { CurX DecisionVector - CurV DecisionVector - CurC ConstraintVector CurF FitnessVector BestX DecisionVector @@ -150,9 +148,7 @@ func (p *Population) Clear() { if p.Population != nil { for _, v := range p.Population { v.CurX = make([]float64, p.Dimen) - v.CurC = make([]float64, p.Dimen) v.CurF = make([]float64, p.Dimen) - v.CurV = make([]float64, p.Dimen) v.BestX = make([]float64, p.Dimen) v.BestC = make([]float64, p.Dimen) v.BestF = make([]float64, p.Dimen)