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)