- Timestamp:
- 06/18/12 10:13:35 (12 years ago)
- Location:
- branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/PriorityRulesVector
- Files:
-
- 2 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) { -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/PriorityRulesVector/Manipulators/PRVUniformOnePositionManipulator.cs
r6406 r8025 43 43 44 44 public static void Apply(IRandom random, PRVEncoding individual) { 45 UniformOnePositionManipulator.Apply(random, individual.PriorityRulesVector, new Int Value(0), new IntValue(3));45 UniformOnePositionManipulator.Apply(random, individual.PriorityRulesVector, new IntMatrix(new int[,] { { 0, 2 } })); 46 46 } 47 47
Note: See TracChangeset
for help on using the changeset viewer.