Changeset 6412 for branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Schedule.cs
- Timestamp:
- 06/14/11 14:53:14 (13 years ago)
- Location:
- branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3
-
Property
svn:ignore
set to
HeuristicLab.Encodings.ScheduleEncoding-3.3.csproj.user
bin
obj
-
Property
svn:ignore
set to
-
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Schedule.cs
r6406 r6412 117 117 public void ScheduleTask(int resNr, double startTime, double duration, int jobNr) { 118 118 ScheduledTask task = new ScheduledTask(resNr, startTime, duration, jobNr); 119 Resource affectedResource = resources[task.ResourceNr .Value];119 Resource affectedResource = resources[task.ResourceNr]; 120 120 int i = 0; 121 while (i < affectedResource.Tasks.Count && affectedResource.Tasks[i].StartTime .Value < task.StartTime.Value)121 while (i < affectedResource.Tasks.Count && affectedResource.Tasks[i].StartTime < task.StartTime) 122 122 i++; 123 123 … … 153 153 double quality = 0; 154 154 foreach (Resource r in Resources) { 155 if (r.TotalDuration .Value> quality) {156 quality = r.TotalDuration .Value;155 if (r.TotalDuration > quality) { 156 quality = r.TotalDuration; 157 157 } 158 158 }
Note: See TracChangeset
for help on using the changeset viewer.