Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/10/11 16:18:44 (13 years ago)
Author:
jhelm
Message:

#1329: Applied suggestions from codereview. Added unit-tests. Renamed encoding-project.

Location:
branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3

    • Property svn:ignore
      •  

        old new  
        22bin
        33obj
         4HeuristicLab.Problems.Scheduling-3.3.csproj.user
  • branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/Evaluators/MakespanEvaluator.cs

    r6293 r6406  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     22using HeuristicLab.Common;
    2623using HeuristicLab.Core;
     24using HeuristicLab.Data;
     25using HeuristicLab.Encodings.ScheduleEncoding;
    2726using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using HeuristicLab.Common;
    29 using HeuristicLab.Data;
    30 using HeuristicLab.Optimization;
    31 using HeuristicLab.Parameters;
    32 using HeuristicLab.Encodings.SchedulingEncoding;
    3327
    34 namespace HeuristicLab.Problems.Scheduling.Evaluators {
     28namespace HeuristicLab.Problems.Scheduling {
    3529  [Item("Makespan Evaluator", "Represents an evaluator using the maximum makespan of a schedule.")]
    3630  [StorableClass]
     
    4539    }
    4640
    47     public MakespanEvaluator () : base () { }
     41    public MakespanEvaluator() : base() { }
    4842
    4943    protected override DoubleValue evaluate(Schedule schedule) {
    50       DoubleValue quality = new DoubleValue (0);
     44      DoubleValue quality = new DoubleValue(0);
    5145      foreach (Resource r in schedule.Resources) {
    5246        if (r.TotalDuration.Value > quality.Value) {
Note: See TracChangeset for help on using the changeset viewer.