- Timestamp:
- 02/23/17 14:29:10 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.