Changeset 6406 for branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/Evaluators/MakespanEvaluator.cs
- Timestamp:
- 06/10/11 16:18:44 (13 years ago)
- 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 2 2 bin 3 3 obj 4 HeuristicLab.Problems.Scheduling-3.3.csproj.user
-
- Property svn:ignore
-
branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/Evaluators/MakespanEvaluator.cs
r6293 r6406 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 26 23 using HeuristicLab.Core; 24 using HeuristicLab.Data; 25 using HeuristicLab.Encodings.ScheduleEncoding; 27 26 using 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;33 27 34 namespace HeuristicLab.Problems.Scheduling .Evaluators{28 namespace HeuristicLab.Problems.Scheduling { 35 29 [Item("Makespan Evaluator", "Represents an evaluator using the maximum makespan of a schedule.")] 36 30 [StorableClass] … … 45 39 } 46 40 47 public MakespanEvaluator () : base() { }41 public MakespanEvaluator() : base() { } 48 42 49 43 protected override DoubleValue evaluate(Schedule schedule) { 50 DoubleValue quality = new DoubleValue 44 DoubleValue quality = new DoubleValue(0); 51 45 foreach (Resource r in schedule.Resources) { 52 46 if (r.TotalDuration.Value > quality.Value) {
Note: See TracChangeset
for help on using the changeset viewer.