Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/04/10 17:34:02 (14 years ago)
Author:
svonolfe
Message:

Further improved the VRP design (#1039)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/MoveEvaluators/VRPMoveEvaluator.cs

    r4068 r4154  
    2626using HeuristicLab.Parameters;
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HeuristicLab.Problems.VehicleRouting.Encodings;
    2829
    2930namespace HeuristicLab.Problems.VehicleRouting {
    3031  [Item("VRPMoveEvaluator", "A base class for operators which evaluate VRP moves.")]
    3132  [StorableClass]
    32   public abstract class VRPMoveEvaluator : SingleSuccessorOperator, IVRPMoveEvaluator, IMoveOperator {
     33  public abstract class VRPMoveEvaluator : VRPOperator, IVRPMoveEvaluator, IMoveOperator {
    3334    public override bool CanChangeName {
    3435      get { return false; }
     
    3839      get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPSolution"]; }
    3940    }
    40     public ILookupParameter<DoubleMatrix> CoordinatesParameter {
    41       get { return (ILookupParameter<DoubleMatrix>)Parameters["Coordinates"]; }
    42     }
    43     public ILookupParameter<DoubleMatrix> DistanceMatrixParameter {
    44       get { return (ILookupParameter<DoubleMatrix>)Parameters["DistanceMatrix"]; }
    45     }
    46     public ILookupParameter<BoolValue> UseDistanceMatrixParameter {
    47       get { return (ILookupParameter<BoolValue>)Parameters["UseDistanceMatrix"]; }
    48     }
    49     public ILookupParameter<IntValue> VehiclesParameter {
    50       get { return (ILookupParameter<IntValue>)Parameters["Vehicles"]; }
    51     }
    52     public ILookupParameter<DoubleValue> CapacityParameter {
    53       get { return (ILookupParameter<DoubleValue>)Parameters["Capacity"]; }
    54     }
    55     public ILookupParameter<DoubleArray> DemandParameter {
    56       get { return (ILookupParameter<DoubleArray>)Parameters["Demand"]; }
    57     }
    58     public ILookupParameter<DoubleArray> ReadyTimeParameter {
    59       get { return (ILookupParameter<DoubleArray>)Parameters["ReadyTime"]; }
    60     }
    61     public ILookupParameter<DoubleArray> DueTimeParameter {
    62       get { return (ILookupParameter<DoubleArray>)Parameters["DueTime"]; }
    63     }
    64     public ILookupParameter<DoubleArray> ServiceTimeParameter {
    65       get { return (ILookupParameter<DoubleArray>)Parameters["ServiceTime"]; }
    66     }
     41   
    6742    public ILookupParameter<DoubleValue> FleetUsageFactor {
    6843      get { return (ILookupParameter<DoubleValue>)Parameters["FleetUsageFactor"]; }
     
    11388      Parameters.Add(new LookupParameter<DoubleValue>("MoveTardiness", "The tardiness."));
    11489      Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The evaluated quality of a move on a VRP solution."));
    115       Parameters.Add(new LookupParameter<DoubleMatrix>("Coordinates", "The coordinates of the cities."));
    116       Parameters.Add(new LookupParameter<DoubleMatrix>("DistanceMatrix", "The matrix which contains the distances between the cities."));
    117       Parameters.Add(new LookupParameter<BoolValue>("UseDistanceMatrix", "True if a distance matrix should be calculated and used for evaluation, otherwise false."));
    118       Parameters.Add(new LookupParameter<IntValue>("Vehicles", "The number of vehicles."));
    119       Parameters.Add(new LookupParameter<DoubleValue>("Capacity", "The capacity of each vehicle."));
    120       Parameters.Add(new LookupParameter<DoubleArray>("Demand", "The demand of each customer."));
    121       Parameters.Add(new LookupParameter<DoubleArray>("ReadyTime", "The ready time of each customer."));
    122       Parameters.Add(new LookupParameter<DoubleArray>("DueTime", "The due time of each customer."));
    123       Parameters.Add(new LookupParameter<DoubleArray>("ServiceTime", "The service time of each customer."));
    12490      Parameters.Add(new LookupParameter<DoubleValue>("FleetUsageFactor", "The fleet usage factor considered in the evaluation."));
    12591      Parameters.Add(new LookupParameter<DoubleValue>("TimeFactor", "The time factor considered in the evaluation."));
Note: See TracChangeset for help on using the changeset viewer.