Changeset 7116 for branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/JobSequenceMatrix
- Timestamp:
- 12/04/11 15:53:02 (13 years ago)
- Location:
- branches/Scheduling
- Files:
-
- 2 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/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)
Note: See TracChangeset
for help on using the changeset viewer.