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/SchedulingEvaluationAlgorithm.cs

    r6364 r6406  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     22using HeuristicLab.Common;
     23using HeuristicLab.Core;
     24using HeuristicLab.Data;
     25using HeuristicLab.Encodings.ScheduleEncoding;
    2626using HeuristicLab.Operators;
     27using HeuristicLab.Parameters;
    2728using 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;
    3529
    36 namespace HeuristicLab.Problems.Scheduling.Evaluators {
     30namespace HeuristicLab.Problems.Scheduling {
    3731  [Item("Scheduling Evaluation Algorithm", "Represents a composition of a decoder and an evaluator for scheduling problems.")]
    3832  [StorableClass]
    39   public class SchedulingEvaluationAlgorithm : AlgorithmOperator, ISchedulingEvaluationAlgorithm {
     33  public class SchedulingEvaluationAlgorithm : AlgorithmOperator, IScheduleEvaluationAlgorithm {
    4034    [StorableConstructor]
    4135    protected SchedulingEvaluationAlgorithm(bool deserializing) : base(deserializing) { }
    4236    protected SchedulingEvaluationAlgorithm(SchedulingEvaluationAlgorithm original, Cloner cloner)
    4337      : base(original, cloner) {
    44         this.evaluator = cloner.Clone(original.evaluator);
     38      this.evaluator = cloner.Clone(original.evaluator);
    4539    }
    4640    public override IDeepCloneable Clone(Cloner cloner) {
     
    6054    }
    6155
    62     public void InitializeOperatorGraph<T>(SchedulingDecoder<T> decoder) where T: Item, ISchedulingEncoding{
     56    public void InitializeOperatorGraph<T>(ScheduleDecoder<T> decoder) where T : Item, IScheduleEncoding {
    6357      OperatorGraph.Operators.Clear();
    6458      OperatorGraph.InitialOperator = decoder;
     
    6862    public SchedulingEvaluationAlgorithm()
    6963      : base() {
    70         Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality value aka fitness value of the solution."));
    71         evaluator = new Placeholder();
    72         evaluator.OperatorParameter.ActualName = "SolutionEvaluator";
     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";
    7367    }
    7468
Note: See TracChangeset for help on using the changeset viewer.