Changeset 10105 for branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/PermutationEncoding
- Timestamp:
- 11/05/13 10:27:17 (11 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/PermutationEncoding
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/PermutationEncoding/PermutationSolutionCacheCollector.cs
r10091 r10105 90 90 foreach (var sol in solutions) { 91 91 PermutationSolutionInformation info = new PermutationSolutionInformation(); 92 info. Generation = GenerationsParameter.ActualValue.Value;92 info.Iteration = GenerationsParameter.ActualValue.Value; 93 93 info.ProducedBy = ProducedBy.CrossoverAndMutation; 94 94 -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.SolutionCaching/3.3/PermutationEncoding/PermutationSolutionInformation.cs
r10096 r10105 47 47 48 48 h = (h << 4) ^ (h >> 28) ^ ProducedBy.GetHashCode(); 49 h = (h << 4) ^ (h >> 28) ^ Generation.GetHashCode();49 h = (h << 4) ^ (h >> 28) ^ Iteration.GetHashCode(); 50 50 51 if (P arentList!= null) {52 foreach (var parent in P arentList) {51 if (Predecessors != null) { 52 foreach (var parent in Predecessors) { 53 53 h = (h << 4) ^ (h >> 28) ^ pweq.GetHashCode(parent); 54 54 }
Note: See TracChangeset
for help on using the changeset viewer.