- Timestamp:
- 02/23/17 14:28:28 (8 years ago)
- Location:
- branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/MemPRContext.cs
r14691 r14694 321 321 var solScope = ToScope(solution); 322 322 Evaluate(solScope, token); 323 solScope.Solution = null; 323 324 return solScope.Fitness; 324 325 } -
branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/SingleObjectiveSolutionScope.cs
r14453 r14694 91 91 this.solution = new Variable(codeName, code); 92 92 this.fitness = new Variable(fitnessName, new DoubleValue(fitness)); 93 variables = new VariableCollection( 2) { this.solution, this.fitness };93 variables = new VariableCollection(new [] { this.solution, this.fitness }); 94 94 subScopes = new ScopeList(2); 95 95 … … 137 137 138 138 public void Adopt(ISingleObjectiveSolutionScope<T> orphan) { 139 Solution = orphan.Solution;139 Solution = (T)orphan.Solution.Clone(); 140 140 Fitness = orphan.Fitness; 141 141 }
Note: See TracChangeset
for help on using the changeset viewer.