Changeset 7116 for branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/PermutationWithRepetition
- 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/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)
Note: See TracChangeset
for help on using the changeset viewer.