- Timestamp:
- 12/04/15 11:57:54 (9 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/GTAlgorithmUtils.cs
r12012 r13436 73 73 return Math.Max(previousJobTaskEndTime, lastMachineEndTime); 74 74 } 75 p ublicstatic double ComputeEarliestCompletionTime(Task t, Schedule schedule) {75 private static double ComputeEarliestCompletionTime(Task t, Schedule schedule) { 76 76 return ComputeEarliestStartTime(t, schedule) + t.Duration; 77 77 } -
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Resource.cs
r13435 r13436 36 36 public ItemList<ScheduledTask> Tasks { get; private set; } 37 37 38 //TODO why does a Ressource has a duration?39 38 public double TotalDuration { 40 39 get { -
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Schedule.cs
r13435 r13436 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 24 25 using System.Text; 25 26 using HeuristicLab.Common; … … 58 59 this.resources = cloner.Clone(original.Resources); 59 60 this.quality = original.Quality; 60 //TODO clone 61 this.lastScheduledTaskOfJob = new Dictionary<int, ScheduledTask>(original.lastScheduledTaskOfJob); 61 this.lastScheduledTaskOfJob = original.lastScheduledTaskOfJob.ToDictionary(kvp => kvp.Key, kvp => cloner.Clone(kvp.Value)); 62 62 63 63 RegisterResourcesEvents(); -
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Task.cs
r12012 r13436 58 58 } 59 59 60 //this has to be exactly the number of the job which the task belongs to 61 //otherwise everything breaks and wrong results are calculated 60 62 [Storable(Name = "JobNr")] 61 63 private int jobNr;
Note: See TracChangeset
for help on using the changeset viewer.