- Timestamp:
- 12/04/11 15:53:02 (13 years ago)
- Location:
- branches/Scheduling
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Scheduling
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 _ReSharper.HeuristicLab.Scheduling 15 *.user
-
- Property svn:ignore
-
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/HeuristicLab.Encodings.ScheduleEncoding-3.3.csproj
r7114 r7116 146 146 set Outdir=$(Outdir) 147 147 148 call PreBuildEvent.cmd 149 SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\Plugin.cs.frame" "%25ProjectDir%25\Plugin.cs"</PreBuildEvent> 148 call PreBuildEvent.cmd</PreBuildEvent> 150 149 </PropertyGroup> 151 150 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/JobSequenceMatrix/JSMEncoding.cs
r6406 r7116 66 66 return false; 67 67 } 68 68 public override int GetHashCode() { 69 if (JobSequenceMatrix.Count == 1) 70 return JobSequenceMatrix[0].GetHashCode(); 71 if (JobSequenceMatrix.Count == 2) 72 return JobSequenceMatrix[0].GetHashCode() ^ JobSequenceMatrix[1].GetHashCode(); 73 return 0; 74 } 69 75 private static bool AreEqual(JSMEncoding jSMEncoding1, JSMEncoding jSMEncoding2) { 70 76 if (jSMEncoding1.JobSequenceMatrix.Count != jSMEncoding2.JobSequenceMatrix.Count) -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition/PWREncoding.cs
r6475 r7116 81 81 return base.Equals(obj); 82 82 } 83 83 public override int GetHashCode() { 84 if (PermutationWithRepetition.Length == 1) 85 return PermutationWithRepetition[0].GetHashCode(); 86 if (PermutationWithRepetition.Length == 2) 87 return PermutationWithRepetition[0].GetHashCode() ^ PermutationWithRepetition[1].GetHashCode(); 88 return 0; 89 } 84 90 private bool AreEqual(PWREncoding pWREncoding1, PWREncoding pWREncoding2) { 85 91 if (pWREncoding1.PermutationWithRepetition.Length != pWREncoding2.PermutationWithRepetition.Length) -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Job.cs
r6475 r7116 52 52 Tasks = new ItemList<Task>(); 53 53 54 if (dueDate != null) 55 DueDate = dueDate; 54 DueDate = dueDate; 56 55 57 56 } … … 63 62 sb.Append(t.ToString() + " "); 64 63 } 65 if (DueDate != null) 66 sb.Append("{" + DueDate + "} "); 64 sb.Append("{" + DueDate + "} "); 67 65 sb.Append("]"); 68 66 return sb.ToString(); -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Resource.cs
r6475 r7116 83 83 return false; 84 84 } 85 85 public override int GetHashCode() { 86 if (Tasks.Count == 1) 87 return Tasks[0].GetHashCode(); 88 if (Tasks.Count == 2) 89 return Tasks[0].GetHashCode() ^ Tasks[1].GetHashCode(); 90 return 0; 91 } 86 92 private static bool AreEqual(Resource res1, Resource res2) { 87 93 if (res1.Tasks.Count != res2.Tasks.Count) -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Schedule.cs
r6482 r7116 171 171 return false; 172 172 } 173 public override int GetHashCode() { 174 if (Resources.Count == 1) 175 return Resources[0].GetHashCode(); 176 if (Resources.Count == 2) 177 return Resources[0].GetHashCode() ^ Resources[1].GetHashCode(); 178 return 0; 179 } 173 180 174 181 private static bool AreEqual(Schedule schedule1, Schedule schedule2) { -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/ScheduledTask.cs
r6482 r7116 83 83 } 84 84 85 public override int GetHashCode() { 86 return TaskNr ^ JobNr; 87 } 88 85 89 public static bool AreEqual(ScheduledTask task1, ScheduledTask task2) { 86 90 return ( -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Task.cs
r6475 r7116 76 76 return false; 77 77 } 78 78 public override int GetHashCode() { 79 return TaskNr ^ JobNr; 80 } 79 81 public static bool AreEqual(Task task1, Task task2) { 80 82 return (task1.Duration == task2.Duration &&
Note: See TracChangeset
for help on using the changeset viewer.