Changeset 13437 for branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition
- Timestamp:
- 12/06/15 15:33:25 (9 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Crossovers/PWRCrossover.cs
r12012 r13437 24 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 25 26 namespace HeuristicLab.Encodings.ScheduleEncoding .PermutationWithRepetition{26 namespace HeuristicLab.Encodings.ScheduleEncoding { 27 27 [Item("PWRCrossover", "An operator which crosses two JSM representations.")] 28 28 [StorableClass] -
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Crossovers/PWRGOXCrossover.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("PWRGeneralizationOrderCrossover", "Represents a crossover operation swapping sequences of the parents to generate offspring.")] 31 31 [StorableClass] -
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Crossovers/PWRPPXCrossover.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("PWRPPXCrossover", "Represents a crossover operation swapping sequences of the parents to generate offspring.")] 31 31 [StorableClass] -
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); -
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/PWREncoding.cs
r13435 r13437 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Encodings.ScheduleEncoding .PermutationWithRepetition{28 namespace HeuristicLab.Encodings.ScheduleEncoding { 29 29 [Item("PermutationWithRepetitionEncoding", "Represents a encoding for a standard JobShop Scheduling Problem.")] 30 30 [StorableClass] -
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/PWRRandomCreator.cs
r13435 r13437 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Data;25 24 using HeuristicLab.Optimization; 26 25 using HeuristicLab.Parameters; 27 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 27 29 namespace HeuristicLab.Encodings.ScheduleEncoding .PermutationWithRepetition{28 namespace HeuristicLab.Encodings.ScheduleEncoding { 30 29 [Item("PermutationWithRepetitionRandomCreator", "Creates PWR-individuals at random.")] 31 30 [StorableClass] … … 34 33 public ILookupParameter<IRandom> RandomParameter { 35 34 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 36 }37 public IValueLookupParameter<IntValue> JobsParameter {38 get { return (IValueLookupParameter<IntValue>)Parameters["Jobs"]; }39 }40 public IValueLookupParameter<IntValue> ResourcesParameter {41 get { return (IValueLookupParameter<IntValue>)Parameters["Resources"]; }42 35 } 43 36 … … 48 41 : base() { 49 42 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator.")); 50 Parameters.Add(new ValueLookupParameter<IntValue>("Jobs", "The number of jobs handled in this problem instance."));51 Parameters.Add(new ValueLookupParameter<IntValue>("Resources", "The number of resources used in this problem instance."));52 53 ScheduleParameter.ActualName = "PermutationWithRepetition";54 43 } 55 44
Note: See TracChangeset
for help on using the changeset viewer.