- Timestamp:
- 07/14/20 20:28:33 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3/3.3/NSGA3Selection.cs
r17665 r17668 38 38 lf = i; 39 39 } 40 // remove useless fronts 41 fronts.RemoveRange(lf + 1, fronts.Count - lf - 1); 40 42 41 43 List<Solution> nextGeneration = new List<Solution>(); … … 46 48 // Add every front to the next generation list except for the one that is added only partially 47 49 nextGeneration = new List<Solution>(); 48 for (int f = 0; f < lf - 1; f++)50 for (int f = 0; f < lf; f++) 49 51 nextGeneration = Utility.Concat(nextGeneration, fronts[f]); 50 52 int k = N - nextGeneration.Count; … … 109 111 } 110 112 } 111 // todo: delete this112 //for (int f = 0; f < Fronts.Count; f++)113 //{114 // foreach (var solution in Fronts[f])115 // {116 // for (int i = 0; i < NumberOfObjectives; i++)117 // {118 // if (Math.Abs(intercepts[i] - idealPoint[i]) > EPSILON)119 // {120 // solution.Fitness[i] = solution.Fitness[i] / (intercepts[i] - idealPoint[i]);121 // }122 // else123 // {124 // solution.Fitness[i] = solution.Fitness[i] / EPSILON;125 // }126 // }127 // }128 //}129 113 } 130 114
Note: See TracChangeset
for help on using the changeset viewer.