Changeset 14695
- Timestamp:
- 02/23/17 14:29:10 (8 years ago)
- Location:
- branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/Binary/BinaryMemPR.cs
r14563 r14695 155 155 var N = p1.Solution.Length; 156 156 157 var probe = Context.ToScope( (BinaryVector)p1.Solution.Clone());157 var probe = Context.ToScope(null); 158 158 159 159 var cache = new HashSet<BinaryVector>(new BinaryVectorEqualityComparer()); -
branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/LinearLinkage/LinearLinkageMemPR.cs
r14563 r14695 253 253 var cacheHits = new Dictionary<int, int>() { { 0, 0 }, { 1, 0 } }; 254 254 var evaluations = 0; 255 var probe = Context.ToScope( (LinearLinkage)p1.Solution.Clone());255 var probe = Context.ToScope(null); 256 256 ISingleObjectiveSolutionScope<LinearLinkage> offspring = null; 257 257 while (evaluations < p1.Solution.Length) { -
branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/Permutation/PermutationMemPR.cs
r14678 r14695 258 258 if (!overallImprovement && bestOfTheWalk != null) { 259 259 quality = bestOfTheWalkF; 260 for (var i = 0; i < current.Length; i++) perm[i] = bestOfTheWalk[i];260 perm.Replace(0, bestOfTheWalk.ToArray()); 261 261 } 262 262 return stepsUntilBestOfWalk; … … 403 403 var evaluations = 0; 404 404 ISingleObjectiveSolutionScope<Encodings.PermutationEncoding.Permutation> offspring = null; 405 var probe = Context.ToScope( (Encodings.PermutationEncoding.Permutation)p1.Solution.Clone());405 var probe = Context.ToScope(null); 406 406 while (evaluations < p1.Solution.Length) { 407 407 Encodings.PermutationEncoding.Permutation c = null; … … 442 442 var evaluations = 0; 443 443 ISingleObjectiveSolutionScope<Encodings.PermutationEncoding.Permutation> offspring = null; 444 var probe = Context.ToScope( (Encodings.PermutationEncoding.Permutation)p1.Solution.Clone());444 var probe = Context.ToScope(null); 445 445 while (evaluations < p1.Solution.Length) { 446 446 Encodings.PermutationEncoding.Permutation c = null; … … 481 481 var evaluations = 0; 482 482 ISingleObjectiveSolutionScope<Encodings.PermutationEncoding.Permutation> offspring = null; 483 var probe = Context.ToScope( (Encodings.PermutationEncoding.Permutation)p1.Solution.Clone());483 var probe = Context.ToScope(null); 484 484 while (evaluations <= p1.Solution.Length) { 485 485 Encodings.PermutationEncoding.Permutation c = null;
Note: See TracChangeset
for help on using the changeset viewer.