Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/18/19 15:06:18 (4 years ago)
Author:
mkommend
Message:

#2521: Fixed single-objective evaluation results and scope contexts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/EvaluationResult.cs

    r17357 r17381  
    2121
    2222using System.Collections.Generic;
     23using System.Linq;
    2324using HEAL.Attic;
    2425using HeuristicLab.Common;
     
    4243
    4344    protected EvaluationResult(EvaluationResult original, Cloner cloner) : base(original, cloner) {
    44       //TODO clone data dictionary
     45      data = original.data.ToDictionary(entry => entry.Key,
     46                                        entry => entry.Value is DeepCloneable ? cloner.Clone((DeepCloneable)entry.Value) : entry.Value);
    4547    }
    4648
Note: See TracChangeset for help on using the changeset viewer.