Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/09/10 18:08:14 (14 years ago)
Author:
svonolfe
Message:

Refactored VRP based on the code review (#1039)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestVRPSolutionAnalyzer.cs

    r4068 r4179  
    3535  [StorableClass]
    3636  public sealed class BestVRPSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer {
    37     public ScopeTreeLookupParameter<IVRPEncoding> VRPSolutionParameter {
    38       get { return (ScopeTreeLookupParameter<IVRPEncoding>)Parameters["VRPSolution"]; }
     37    public ScopeTreeLookupParameter<IVRPEncoding> VRPToursParameter {
     38      get { return (ScopeTreeLookupParameter<IVRPEncoding>)Parameters["VRPTours"]; }
    3939    }
    4040    public ILookupParameter<DoubleMatrix> DistanceMatrixParameter {
     
    8181    }
    8282
     83    [StorableConstructor]
     84    private BestVRPSolutionAnalyzer(bool deserializing) : base(deserializing) { }
     85
    8386    public BestVRPSolutionAnalyzer()
    8487      : base() {
    85       Parameters.Add(new ScopeTreeLookupParameter<IVRPEncoding>("VRPSolution", "The VRP solutions which should be evaluated."));
     88        Parameters.Add(new ScopeTreeLookupParameter<IVRPEncoding>("VRPTours", "The VRP tours which should be evaluated."));
    8689      Parameters.Add(new LookupParameter<DoubleMatrix>("Coordinates", "The x- and y-Coordinates of the cities."));
    8790      Parameters.Add(new LookupParameter<DoubleMatrix>("DistanceMatrix", "The matrix which contains the distances between the cities."));
     
    103106    public override IOperation Apply() {
    104107      DoubleMatrix coordinates = CoordinatesParameter.ActualValue;
    105       ItemArray<IVRPEncoding> solutions = VRPSolutionParameter.ActualValue;
     108      ItemArray<IVRPEncoding> solutions = VRPToursParameter.ActualValue;
    106109      ItemArray<DoubleValue> qualities = QualityParameter.ActualValue;
    107110      ItemArray<DoubleValue> overloads = OverloadParameter.ActualValue;
Note: See TracChangeset for help on using the changeset viewer.