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/MoveEvaluators/VRPMoveEvaluator.cs

    r4154 r4179  
    3636    }
    3737
    38     public ILookupParameter<IVRPEncoding> VRPSolutionParameter {
    39       get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPSolution"]; }
     38    public ILookupParameter<IVRPEncoding> VRPToursParameter {
     39      get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPTours"]; }
    4040    }
    4141   
    4242    public ILookupParameter<DoubleValue> FleetUsageFactor {
    43       get { return (ILookupParameter<DoubleValue>)Parameters["FleetUsageFactor"]; }
     43      get { return (ILookupParameter<DoubleValue>)Parameters["EvalFleetUsageFactor"]; }
    4444    }
    4545    public ILookupParameter<DoubleValue> TimeFactor {
    46       get { return (ILookupParameter<DoubleValue>)Parameters["TimeFactor"]; }
     46      get { return (ILookupParameter<DoubleValue>)Parameters["EvalTimeFactor"]; }
    4747    }
    4848    public ILookupParameter<DoubleValue> DistanceFactor {
    49       get { return (ILookupParameter<DoubleValue>)Parameters["DistanceFactor"]; }
     49      get { return (ILookupParameter<DoubleValue>)Parameters["EvalDistanceFactor"]; }
    5050    }
    5151    public ILookupParameter<DoubleValue> OverloadPenalty {
    52       get { return (ILookupParameter<DoubleValue>)Parameters["OverloadPenalty"]; }
     52      get { return (ILookupParameter<DoubleValue>)Parameters["EvalOverloadPenalty"]; }
    5353    }
    5454    public ILookupParameter<DoubleValue> TardinessPenalty {
    55       get { return (ILookupParameter<DoubleValue>)Parameters["TardinessPenalty"]; }
     55      get { return (ILookupParameter<DoubleValue>)Parameters["EvalTardinessPenalty"]; }
    5656    }
    5757
     
    7878    }
    7979
     80    [StorableConstructor]
     81    protected VRPMoveEvaluator(bool deserializing) : base(deserializing) { }
     82
    8083    protected VRPMoveEvaluator()
    8184      : base() {
    82       Parameters.Add(new LookupParameter<IVRPEncoding>("VRPSolution", "The VRP solution."));
     85      Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The VRP tours."));
    8386      Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of a VRP solution."));
    8487      Parameters.Add(new LookupParameter<DoubleValue>("MoveVehiclesUtilized", "The number of vehicles utilized."));
     
    8891      Parameters.Add(new LookupParameter<DoubleValue>("MoveTardiness", "The tardiness."));
    8992      Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The evaluated quality of a move on a VRP solution."));
    90       Parameters.Add(new LookupParameter<DoubleValue>("FleetUsageFactor", "The fleet usage factor considered in the evaluation."));
    91       Parameters.Add(new LookupParameter<DoubleValue>("TimeFactor", "The time factor considered in the evaluation."));
    92       Parameters.Add(new LookupParameter<DoubleValue>("DistanceFactor", "The distance factor considered in the evaluation."));
    93       Parameters.Add(new LookupParameter<DoubleValue>("OverloadPenalty", "The overload penalty considered in the evaluation."));
    94       Parameters.Add(new LookupParameter<DoubleValue>("TardinessPenalty", "The tardiness penalty considered in the evaluation."));
     93      Parameters.Add(new LookupParameter<DoubleValue>("EvalFleetUsageFactor", "The fleet usage factor considered in the evaluation."));
     94      Parameters.Add(new LookupParameter<DoubleValue>("EvalTimeFactor", "The time factor considered in the evaluation."));
     95      Parameters.Add(new LookupParameter<DoubleValue>("EvalDistanceFactor", "The distance factor considered in the evaluation."));
     96      Parameters.Add(new LookupParameter<DoubleValue>("EvalOverloadPenalty", "The overload penalty considered in the evaluation."));
     97      Parameters.Add(new LookupParameter<DoubleValue>("EvalTardinessPenalty", "The tardiness penalty considered in the evaluation."));
    9598    }
    9699
Note: See TracChangeset for help on using the changeset viewer.