ga/population: rm unused variables
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
b3b1b38ac8
commit
c4efcbb103
@ -22,8 +22,6 @@ type (
|
|||||||
// PopulationIndividual represents a single population individual.
|
// PopulationIndividual represents a single population individual.
|
||||||
type PopulationIndividual struct {
|
type PopulationIndividual struct {
|
||||||
CurX DecisionVector
|
CurX DecisionVector
|
||||||
CurV DecisionVector
|
|
||||||
CurC ConstraintVector
|
|
||||||
CurF FitnessVector
|
CurF FitnessVector
|
||||||
|
|
||||||
BestX DecisionVector
|
BestX DecisionVector
|
||||||
@ -150,9 +148,7 @@ func (p *Population) Clear() {
|
|||||||
if p.Population != nil {
|
if p.Population != nil {
|
||||||
for _, v := range p.Population {
|
for _, v := range p.Population {
|
||||||
v.CurX = make([]float64, p.Dimen)
|
v.CurX = make([]float64, p.Dimen)
|
||||||
v.CurC = make([]float64, p.Dimen)
|
|
||||||
v.CurF = make([]float64, p.Dimen)
|
v.CurF = make([]float64, p.Dimen)
|
||||||
v.CurV = make([]float64, p.Dimen)
|
|
||||||
v.BestX = make([]float64, p.Dimen)
|
v.BestX = make([]float64, p.Dimen)
|
||||||
v.BestC = make([]float64, p.Dimen)
|
v.BestC = make([]float64, p.Dimen)
|
||||||
v.BestF = make([]float64, p.Dimen)
|
v.BestF = make([]float64, p.Dimen)
|
||||||
|
Loading…
Reference in New Issue
Block a user