Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/24/11 16:20:04 (14 years ago)
Author:
jhelm
Message:

#1329: Did some heavy refactoring.

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  
        11Plugin.cs
         2bin
         3obj
  • branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/Analyzers/BestSchedulingSolutionAnalyzer.cs

    r6260 r6266  
    3636  [Item("BestSchedulingSolutionAnalyzer", "An operator for analyzing the best solution of Scheduling Problems given in schedule-representation.")]
    3737  [StorableClass]
    38   public sealed class BestSchedulingSolutionAnalyzer : JSSPOperator, IAnalyzer, IStochasticOperator {
     38  public sealed class BestSchedulingSolutionAnalyzer : SchedulingAnalyzer, IStochasticOperator {
    3939    [StorableConstructor]
    4040    private BestSchedulingSolutionAnalyzer(bool deserializing) : base(deserializing) { }
     
    4646    }
    4747
    48 
    4948    public ILookupParameter<IRandom> RandomParameter {
    5049      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
     
    5453    }
    5554
    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."));
    7757    }
    7858
    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 
    9459    public override IOperation Apply() {
    95       ItemList<JSSPJob> jobs = Jobs;
    9660      ItemArray<DoubleValue> qualities = QualityParameter.ActualValue;
    9761      ItemArray<Schedule> solutions = SchedulingSolutionParameter.ActualValue;
     
    12892      return base.Apply();
    12993    }
    130 
    13194  }
    13295}
Note: See TracChangeset for help on using the changeset viewer.