Changeset 13361 for branches/ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/LinkageCrossover.cs
- Timestamp:
- 11/24/15 16:01:02 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/LinkageCrossover.cs
r13339 r13361 33 33 public static class LinkageCrossover { 34 34 // In the GECCO paper, Figure 3 35 public static double ImproveUsingTree(LinkageTree tree, IList<BinaryVector> donors, BinaryVector solution, double fitness, ISingleObjectiveProblem <BinaryVectorEncoding, BinaryVector> problem, IRandom rand) {35 public static double ImproveUsingTree(LinkageTree tree, IList<BinaryVector> donors, BinaryVector solution, double fitness, ISingleObjectiveProblemDefinition<BinaryVectorEncoding, BinaryVector> problem, IRandom rand) { 36 36 var options = Enumerable.Range(0, donors.Count).ToArray(); 37 37 foreach (var cluster in tree.Clusters) { … … 48 48 } 49 49 50 private static double Donate(BinaryVector solution, double fitness, BinaryVector source, IEnumerable<int> cluster, ISingleObjectiveProblem <BinaryVectorEncoding, BinaryVector> problem, IRandom rand, out bool changed) {50 private static double Donate(BinaryVector solution, double fitness, BinaryVector source, IEnumerable<int> cluster, ISingleObjectiveProblemDefinition<BinaryVectorEncoding, BinaryVector> problem, IRandom rand, out bool changed) { 51 51 // keep track of which bits flipped to make the donation 52 52 List<int> flipped = new List<int>();
Note: See TracChangeset
for help on using the changeset viewer.