Changeset 8025 for branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/PriorityRulesVector/Crossovers/PRVDiscreteCrossover.cs
- Timestamp:
- 06/18/12 10:13:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/PriorityRulesVector/Crossovers/PRVDiscreteCrossover.cs
r6414 r8025 41 41 42 42 public static PRVEncoding Apply(IRandom random, PRVEncoding parent1, PRVEncoding parent2) { 43 return new PRVEncoding(DiscreteCrossover.Apply(random, parent1.PriorityRulesVector, parent2.PriorityRulesVector), parent1.NrOfRules);43 return new PRVEncoding(DiscreteCrossover.Apply(random, new ItemArray<IntegerVector>(new IntegerVector[] { parent1.PriorityRulesVector, parent2.PriorityRulesVector })), parent1.NrOfRules); 44 44 } 45 45 public override PRVEncoding Cross(IRandom random, PRVEncoding parent1, PRVEncoding parent2) {
Note: See TracChangeset
for help on using the changeset viewer.