- Timestamp:
- 07/17/11 22:51:11 (13 years ago)
- Location:
- branches/QAPAlgorithms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAPAlgorithms
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/QAPAlgorithms/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting merged: 6441,6448-6450,6455,6459,6491,6522-6523,6548
- Property svn:mergeinfo changed
-
branches/QAPAlgorithms/HeuristicLab.Problems.VehicleRouting/3.3/VRPOperator.cs
r5445 r6569 123 123 Parameters.Add(new LookupParameter<DoubleArray>("ServiceTime", "The service time of each customer.")); 124 124 } 125 126 protected bool Feasible(Tour tour) {127 return tour.Feasible(128 DueTimeParameter.ActualValue,129 ServiceTimeParameter.ActualValue,130 ReadyTimeParameter.ActualValue,131 DemandParameter.ActualValue,132 CapacityParameter.ActualValue,133 CoordinatesParameter.ActualValue,134 DistanceMatrixParameter,135 UseDistanceMatrixParameter.ActualValue);136 }137 138 protected bool Feasible(IVRPEncoding solution) {139 bool feasible = true;140 141 foreach (Tour tour in solution.GetTours(DistanceMatrixParameter)) {142 if (!Feasible(tour)) {143 feasible = false;144 break;145 }146 }147 148 return feasible;149 }150 151 protected double GetLength(Tour tour) {152 return tour.GetLength(153 CoordinatesParameter.ActualValue,154 DistanceMatrixParameter,155 UseDistanceMatrixParameter.ActualValue);156 }157 125 } 158 126 }
Note: See TracChangeset
for help on using the changeset viewer.