- Timestamp:
- 09/06/10 17:05:13 (14 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/SingleDepotVRPProblemInstance.cs
r4363 r4365 43 43 } 44 44 45 public override IntValue Cities { 46 get { 47 return new IntValue(Demand.Length - 1); 48 } 49 } 50 45 51 protected override IVRPEvaluator Evaluator { 46 52 get { -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/VRPEvaluator.cs
r4363 r4365 124 124 125 125 public override IOperation Apply() { 126 double quality = 0; 126 127 InitResultParameters(); 127 128 128 129 foreach (Tour tour in VRPToursParameter.ActualValue.GetTours()) { 129 130 VRPEvaluation tourEvaluation = EvaluateTour(ProblemInstance, tour); 131 quality += tourEvaluation.Quality; 130 132 131 133 UpdateResultParameters(tourEvaluation); 132 134 } 135 136 QualityParameter.ActualValue = new DoubleValue(quality); 133 137 134 138 return base.Apply(); -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/VRPProblemInstance.cs
r4363 r4365 89 89 set { DemandParameter.Value = value; } 90 90 } 91 public IntValue Cities {91 public virtual IntValue Cities { 92 92 get { return new IntValue(Demand.Length); } 93 93 }
Note: See TracChangeset
for help on using the changeset viewer.