- Timestamp:
- 05/24/11 16:20:04 (14 years ago)
- Location:
- branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3
- Property svn:ignore
-
old new 1 1 Plugin.cs 2 bin 3 obj
-
- Property svn:ignore
-
branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/Analyzers/BestSchedulingSolutionAnalyzer.cs
r6260 r6266 36 36 [Item("BestSchedulingSolutionAnalyzer", "An operator for analyzing the best solution of Scheduling Problems given in schedule-representation.")] 37 37 [StorableClass] 38 public sealed class BestSchedulingSolutionAnalyzer : JSSPOperator, IAnalyzer, IStochasticOperator {38 public sealed class BestSchedulingSolutionAnalyzer : SchedulingAnalyzer, IStochasticOperator { 39 39 [StorableConstructor] 40 40 private BestSchedulingSolutionAnalyzer(bool deserializing) : base(deserializing) { } … … 46 46 } 47 47 48 49 48 public ILookupParameter<IRandom> RandomParameter { 50 49 get { return (LookupParameter<IRandom>)Parameters["Random"]; } … … 54 53 } 55 54 56 57 public LookupParameter<BoolValue> MaximizationParameter { 58 get { return (LookupParameter<BoolValue>)Parameters["Maximization"]; } 59 } 60 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 61 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 62 } 63 public LookupParameter<Schedule> BestSolutionParameter { 64 get { return (LookupParameter<Schedule>)Parameters["BestSolution"]; } 65 } 66 public ValueLookupParameter<ResultCollection> ResultsParameter { 67 get { return (ValueLookupParameter<ResultCollection>)Parameters["Results"]; } 68 } 69 public LookupParameter<DoubleValue> BestKnownQualityParameter { 70 get { return (LookupParameter<DoubleValue>)Parameters["BestKnownQuality"]; } 71 } 72 public LookupParameter<Schedule> BestKnownSolutionParameter { 73 get { return (LookupParameter<Schedule>)Parameters["BestKnownSolution"]; } 74 } 75 public ScopeTreeLookupParameter<Schedule> SchedulingSolutionParameter { 76 get { return (ScopeTreeLookupParameter<Schedule>)Parameters["DecodedSchedulingSolution"]; } 55 public BestSchedulingSolutionAnalyzer () : base () { 56 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator.")); 77 57 } 78 58 79 80 81 public BestSchedulingSolutionAnalyzer () {82 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator."));83 84 Parameters.Add(new LookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem."));85 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the JSSP solutions which should be analyzed."));86 Parameters.Add(new ScopeTreeLookupParameter<Schedule>("DecodedSchedulingSolution", "The solutions from which the best solution has to be chosen from."));87 Parameters.Add(new LookupParameter<Schedule>("BestSolution", "The best JSSP solution."));88 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the best JSSP solution should be stored."));89 Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this JSSP instance."));90 Parameters.Add(new LookupParameter<Schedule>("BestKnownSolution", "The best known solution of this JSSP instance."));91 }92 93 94 59 public override IOperation Apply() { 95 ItemList<JSSPJob> jobs = Jobs;96 60 ItemArray<DoubleValue> qualities = QualityParameter.ActualValue; 97 61 ItemArray<Schedule> solutions = SchedulingSolutionParameter.ActualValue; … … 128 92 return base.Apply(); 129 93 } 130 131 94 } 132 95 }
Note: See TracChangeset
for help on using the changeset viewer.