Changeset 4179 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Evaluators/VRPEvaluator.cs
- Timestamp:
- 08/09/10 18:08:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Evaluators/VRPEvaluator.cs
r4174 r4179 62 62 } 63 63 64 public ILookupParameter<IVRPEncoding> VRP SolutionParameter {65 get { return (ILookupParameter<IVRPEncoding>)Parameters["VRP Solution"]; }64 public ILookupParameter<IVRPEncoding> VRPToursParameter { 65 get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPTours"]; } 66 66 } 67 67 68 68 public ILookupParameter<DoubleValue> FleetUsageFactor { 69 get { return (ILookupParameter<DoubleValue>)Parameters[" FleetUsageFactor"]; }69 get { return (ILookupParameter<DoubleValue>)Parameters["EvalFleetUsageFactor"]; } 70 70 } 71 71 public ILookupParameter<DoubleValue> TimeFactor { 72 get { return (ILookupParameter<DoubleValue>)Parameters[" TimeFactor"]; }72 get { return (ILookupParameter<DoubleValue>)Parameters["EvalTimeFactor"]; } 73 73 } 74 74 public ILookupParameter<DoubleValue> DistanceFactor { 75 get { return (ILookupParameter<DoubleValue>)Parameters[" DistanceFactor"]; }75 get { return (ILookupParameter<DoubleValue>)Parameters["EvalDistanceFactor"]; } 76 76 } 77 77 public ILookupParameter<DoubleValue> OverloadPenalty { 78 get { return (ILookupParameter<DoubleValue>)Parameters[" OverloadPenalty"]; }78 get { return (ILookupParameter<DoubleValue>)Parameters["EvalOverloadPenalty"]; } 79 79 } 80 80 public ILookupParameter<DoubleValue> TardinessPenalty { 81 get { return (ILookupParameter<DoubleValue>)Parameters[" TardinessPenalty"]; }81 get { return (ILookupParameter<DoubleValue>)Parameters["EvalTardinessPenalty"]; } 82 82 } 83 83 … … 90 90 Parameters.Add(new LookupParameter<DoubleValue>("Overload", "The overload.")); 91 91 Parameters.Add(new LookupParameter<DoubleValue>("Tardiness", "The tardiness.")); 92 Parameters.Add(new LookupParameter<IVRPEncoding>("VRP Solution", "The VRP solutionwhich should be evaluated."));93 Parameters.Add(new LookupParameter<DoubleValue>(" FleetUsageFactor", "The fleet usage factor considered in the evaluation."));94 Parameters.Add(new LookupParameter<DoubleValue>(" TimeFactor", "The time factor considered in the evaluation."));95 Parameters.Add(new LookupParameter<DoubleValue>(" DistanceFactor", "The distance factor considered in the evaluation."));96 Parameters.Add(new LookupParameter<DoubleValue>(" OverloadPenalty", "The overload penalty considered in the evaluation."));97 Parameters.Add(new LookupParameter<DoubleValue>(" TardinessPenalty", "The tardiness penalty considered in the evaluation."));92 Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The VRP tours which should be evaluated.")); 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.")); 98 98 } 99 99 100 100 private double CalculateFleetUsage() { 101 IVRPEncoding vrpSolution = VRP SolutionParameter.ActualValue;101 IVRPEncoding vrpSolution = VRPToursParameter.ActualValue; 102 102 103 103 return vrpSolution.Tours.Count; … … 206 206 207 207 public sealed override IOperation Apply() { 208 IVRPEncoding solution = VRP SolutionParameter.ActualValue;208 IVRPEncoding solution = VRPToursParameter.ActualValue; 209 209 210 210 TourEvaluation sumEval = Evaluate(solution, DueTimeParameter.ActualValue, ServiceTimeParameter.ActualValue, ReadyTimeParameter.ActualValue,
Note: See TracChangeset
for help on using the changeset viewer.