Changeset 14694 for branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/SingleObjectiveSolutionScope.cs
- Timestamp:
- 02/23/17 14:28:28 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.