Changeset 13435 for branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition
- Timestamp:
- 12/04/15 10:35:04 (9 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/Manipulators/PWRManipulator.cs
r12012 r13435 35 35 public PWRManipulator() 36 36 : base() { 37 Schedule EncodingParameter.ActualName = "PermutationWithRepetition";37 ScheduleParameter.ActualName = "PermutationWithRepetition"; 38 38 } 39 39 … … 41 41 42 42 public override IOperation InstrumentedApply() { 43 var solution = Schedule EncodingParameter.ActualValue as PWREncoding;43 var solution = ScheduleParameter.ActualValue as PWREncoding; 44 44 if (solution == null) throw new InvalidOperationException("ScheduleEncoding was not found or is not of type PWREncoding."); 45 45 Manipulate(RandomParameter.ActualValue, solution); -
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/PWREncoding.cs
r12012 r13435 29 29 [Item("PermutationWithRepetitionEncoding", "Represents a encoding for a standard JobShop Scheduling Problem.")] 30 30 [StorableClass] 31 public class PWREncoding : Item, ISchedule Encoding{31 public class PWREncoding : Item, ISchedule { 32 32 33 33 [Storable] -
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/PWRRandomCreator.cs
r12012 r13435 51 51 Parameters.Add(new ValueLookupParameter<IntValue>("Resources", "The number of resources used in this problem instance.")); 52 52 53 Schedule EncodingParameter.ActualName = "PermutationWithRepetition";53 ScheduleParameter.ActualName = "PermutationWithRepetition"; 54 54 } 55 55 … … 62 62 } 63 63 64 protected override ISchedule EncodingCreateSolution() {64 protected override ISchedule CreateSolution() { 65 65 return Apply(JobsParameter.ActualValue.Value, ResourcesParameter.ActualValue.Value, RandomParameter.ActualValue); 66 66 }
Note: See TracChangeset
for help on using the changeset viewer.