- Timestamp:
- 07/08/10 11:23:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/VRPSolution.cs
r3938 r4015 142 142 } 143 143 } 144 [Storable] 145 private DoubleMatrix distanceMatrix; 146 public DoubleMatrix DistanceMatrix { 147 get { return distanceMatrix; } 148 set { 149 if (distanceMatrix != value) { 150 distanceMatrix = value; 151 } 152 } 153 } 154 [Storable] 155 private BoolValue useDistanceMatrix; 156 public BoolValue UseDistanceMatrix { 157 get { return useDistanceMatrix; } 158 set { 159 if (useDistanceMatrix != value) { 160 useDistanceMatrix = value; 161 } 162 } 163 } 164 [Storable] 165 private DoubleArray readyTime; 166 public DoubleArray ReadyTime { 167 get { return readyTime; } 168 set { 169 if (readyTime != value) { 170 readyTime = value; 171 } 172 } 173 } 174 [Storable] 175 private DoubleArray dueTime; 176 public DoubleArray DueTime { 177 get { return dueTime; } 178 set { 179 if (dueTime != value) { 180 dueTime = value; 181 } 182 } 183 } 184 [Storable] 185 private DoubleArray serviceTime; 186 public DoubleArray ServiceTime { 187 get { return serviceTime; } 188 set { 189 if (serviceTime != value) { 190 serviceTime = value; 191 } 192 } 193 } 144 194 145 195 public VRPSolution() : base() { } … … 147 197 public VRPSolution(DoubleMatrix coordinates, IVRPEncoding solution, DoubleValue quality, 148 198 DoubleValue distance, DoubleValue overload, DoubleValue tardiness, DoubleValue travelTime, 149 DoubleValue vehicleUtilization) 199 DoubleValue vehicleUtilization, DoubleMatrix distanceMatrix, BoolValue useDistanceMatrix, 200 DoubleArray readyTime, DoubleArray dueTime, DoubleArray serviceTime) 150 201 : base() { 151 202 this.coordinates = coordinates; … … 157 208 this.travelTime = travelTime; 158 209 this.vehicleUtilization = vehicleUtilization; 210 this.distanceMatrix = distanceMatrix; 211 this.useDistanceMatrix = useDistanceMatrix; 212 this.readyTime = readyTime; 213 this.dueTime = dueTime; 214 this.serviceTime = serviceTime; 159 215 Initialize(); 160 216 } … … 167 223 if (solution != null) RegisterSolutionEvents(); 168 224 if (quality != null) RegisterQualityEvents(); 225 if (distance != null) RegisterDistanceEvents(); 226 if (overload != null) RegisterOverloadEvents(); 227 if (tardiness != null) RegisterTardinessEvents(); 228 if (travelTime != null) RegisterTravelTimeEvents(); 229 if (vehicleUtilization != null) RegisterVehicleUtilizationEvents(); 169 230 } 170 231 … … 180 241 clone.travelTime = (DoubleValue)cloner.Clone(travelTime); 181 242 clone.vehicleUtilization = (DoubleValue)cloner.Clone(vehicleUtilization); 243 clone.distanceMatrix = (DoubleMatrix)cloner.Clone(distanceMatrix); 244 clone.useDistanceMatrix = (BoolValue)cloner.Clone(useDistanceMatrix); 245 clone.readyTime = (DoubleArray)cloner.Clone(readyTime); 246 clone.dueTime = (DoubleArray)cloner.Clone(dueTime); 247 clone.serviceTime = (DoubleArray)cloner.Clone(serviceTime); 182 248 clone.Initialize(); 183 249 return clone;
Note: See TracChangeset
for help on using the changeset viewer.