Changeset 6406 for branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/Evaluators/SchedulingEvaluationAlgorithm.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/SchedulingEvaluationAlgorithm.cs
r6364 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; 23 using HeuristicLab.Core; 24 using HeuristicLab.Data; 25 using HeuristicLab.Encodings.ScheduleEncoding; 26 26 using HeuristicLab.Operators; 27 using HeuristicLab.Parameters; 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.Core;29 using HeuristicLab.Common;30 using HeuristicLab.Optimization;31 using HeuristicLab.Data;32 using HeuristicLab.Parameters;33 using HeuristicLab.Encodings.SchedulingEncoding.Interfaces;34 using HeuristicLab.Encodings.SchedulingEncoding;35 29 36 namespace HeuristicLab.Problems.Scheduling .Evaluators{30 namespace HeuristicLab.Problems.Scheduling { 37 31 [Item("Scheduling Evaluation Algorithm", "Represents a composition of a decoder and an evaluator for scheduling problems.")] 38 32 [StorableClass] 39 public class SchedulingEvaluationAlgorithm : AlgorithmOperator, ISchedul ingEvaluationAlgorithm {33 public class SchedulingEvaluationAlgorithm : AlgorithmOperator, IScheduleEvaluationAlgorithm { 40 34 [StorableConstructor] 41 35 protected SchedulingEvaluationAlgorithm(bool deserializing) : base(deserializing) { } 42 36 protected SchedulingEvaluationAlgorithm(SchedulingEvaluationAlgorithm original, Cloner cloner) 43 37 : base(original, cloner) { 44 38 this.evaluator = cloner.Clone(original.evaluator); 45 39 } 46 40 public override IDeepCloneable Clone(Cloner cloner) { … … 60 54 } 61 55 62 public void InitializeOperatorGraph<T>(Schedul ingDecoder<T> decoder) where T: Item, ISchedulingEncoding{56 public void InitializeOperatorGraph<T>(ScheduleDecoder<T> decoder) where T : Item, IScheduleEncoding { 63 57 OperatorGraph.Operators.Clear(); 64 58 OperatorGraph.InitialOperator = decoder; … … 68 62 public SchedulingEvaluationAlgorithm() 69 63 : base() { 70 71 72 64 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality value aka fitness value of the solution.")); 65 evaluator = new Placeholder(); 66 evaluator.OperatorParameter.ActualName = "SolutionEvaluator"; 73 67 } 74 68
Note: See TracChangeset
for help on using the changeset viewer.