Ignore:
Timestamp:
12/04/15 11:57:54 (5 years ago)
Author:
mkommend
Message:

#2521: Minor improvements in SchedulingEncoding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Schedule.cs

    r13435 r13436  
    2222using System;
    2323using System.Collections.Generic;
     24using System.Linq;
    2425using System.Text;
    2526using HeuristicLab.Common;
     
    5859      this.resources = cloner.Clone(original.Resources);
    5960      this.quality = original.Quality;
    60       //TODO clone
    61       this.lastScheduledTaskOfJob = new Dictionary<int, ScheduledTask>(original.lastScheduledTaskOfJob);
     61      this.lastScheduledTaskOfJob = original.lastScheduledTaskOfJob.ToDictionary(kvp => kvp.Key, kvp => cloner.Clone(kvp.Value));
    6262
    6363      RegisterResourcesEvents();
Note: See TracChangeset for help on using the changeset viewer.