- Timestamp:
- 08/04/10 17:34:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/MoveEvaluators/VRPMoveEvaluator.cs
r4068 r4154 26 26 using HeuristicLab.Parameters; 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.Problems.VehicleRouting.Encodings; 28 29 29 30 namespace HeuristicLab.Problems.VehicleRouting { 30 31 [Item("VRPMoveEvaluator", "A base class for operators which evaluate VRP moves.")] 31 32 [StorableClass] 32 public abstract class VRPMoveEvaluator : SingleSuccessorOperator, IVRPMoveEvaluator, IMoveOperator {33 public abstract class VRPMoveEvaluator : VRPOperator, IVRPMoveEvaluator, IMoveOperator { 33 34 public override bool CanChangeName { 34 35 get { return false; } … … 38 39 get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPSolution"]; } 39 40 } 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 67 42 public ILookupParameter<DoubleValue> FleetUsageFactor { 68 43 get { return (ILookupParameter<DoubleValue>)Parameters["FleetUsageFactor"]; } … … 113 88 Parameters.Add(new LookupParameter<DoubleValue>("MoveTardiness", "The tardiness.")); 114 89 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."));124 90 Parameters.Add(new LookupParameter<DoubleValue>("FleetUsageFactor", "The fleet usage factor considered in the evaluation.")); 125 91 Parameters.Add(new LookupParameter<DoubleValue>("TimeFactor", "The time factor considered in the evaluation."));
Note: See TracChangeset
for help on using the changeset viewer.