Changeset 13437 for branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Manipulators
- Timestamp:
- 12/06/15 15:33:25 (9 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Manipulators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Manipulators/PWRInsertionManipulator.cs
r12012 r13437 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 28 29 namespace HeuristicLab.Encodings.ScheduleEncoding .PermutationWithRepetition{29 namespace HeuristicLab.Encodings.ScheduleEncoding { 30 30 [Item("PWRInsertionManipulator", "Represents a manipulation operation inserting parts of the individual at another position.")] 31 31 [StorableClass] … … 43 43 int cutIndex = random.Next(individual.PermutationWithRepetition.Length); 44 44 int insertIndex = random.Next(individual.PermutationWithRepetition.Length); 45 List<int> perm = ((IntegerVector)(individual.PermutationWithRepetition.Clone())).ToList <int>();45 List<int> perm = ((IntegerVector)(individual.PermutationWithRepetition.Clone())).ToList(); 46 46 int aux = perm[cutIndex]; 47 47 if (cutIndex > insertIndex) { -
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Manipulators/PWRManipulator.cs
r13435 r13437 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 26 27 namespace HeuristicLab.Encodings.ScheduleEncoding .PermutationWithRepetition{27 namespace HeuristicLab.Encodings.ScheduleEncoding { 28 28 [Item("PWRManipulator", "An operator which manipulates a PWR representation.")] 29 29 [StorableClass] … … 33 33 protected PWRManipulator(bool deserializing) : base(deserializing) { } 34 34 protected PWRManipulator(PWRManipulator original, Cloner cloner) : base(original, cloner) { } 35 public PWRManipulator() 36 : base() { 37 ScheduleParameter.ActualName = "PermutationWithRepetition"; 38 } 35 public PWRManipulator() : base() { } 39 36 40 37 protected abstract void Manipulate(IRandom random, PWREncoding individual);
Note: See TracChangeset
for help on using the changeset viewer.