Changeset 17698 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/VRPProblemInstance.cs
- Timestamp:
- 07/24/20 00:58:42 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/VRPProblemInstance.cs
r17226 r17698 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; 27 28 using HeuristicLab.Data; 28 29 using HeuristicLab.Parameters; 29 using HEAL.Attic;30 30 using HeuristicLab.Problems.VehicleRouting.Encodings.General; 31 31 using HeuristicLab.Problems.VehicleRouting.Interfaces; … … 178 178 return evaluator; 179 179 } 180 181 180 set { 182 181 lock (locker) { … … 188 187 } 189 188 190 public virtual double GetDistance(int start, int end, IVRPEncod ingsolution) {189 public virtual double GetDistance(int start, int end, IVRPEncodedSolution solution) { 191 190 if (distanceMatrix == null && UseDistanceMatrix.Value) { 192 191 distanceMatrix = DistanceMatrix ?? CreateDistanceMatrix(); … … 197 196 } 198 197 199 public virtual double GetInsertionDistance(int start, int customer, int end, IVRPEncod ingsolution,198 public virtual double GetInsertionDistance(int start, int customer, int end, IVRPEncodedSolution solution, 200 199 out double startDistance, out double endDistance) { 201 200 double distance = GetDistance(start, end, solution); … … 209 208 } 210 209 211 public bool Feasible(IVRPEncod ingsolution) {210 public bool Feasible(IVRPEncodedSolution solution) { 212 211 return evaluator.Feasible( 213 212 evaluator.Evaluate( … … 215 214 } 216 215 217 public bool TourFeasible(Tour tour, IVRPEncod ingsolution) {216 public bool TourFeasible(Tour tour, IVRPEncodedSolution solution) { 218 217 return evaluator.Feasible( 219 218 evaluator.EvaluateTour( … … 221 220 } 222 221 223 public VRPEvaluation Evaluate(IVRPEncod ingsolution) {222 public VRPEvaluation Evaluate(IVRPEncodedSolution solution) { 224 223 return evaluator.Evaluate(this, solution); 225 224 } 226 225 227 public VRPEvaluation EvaluateTour(Tour tour, IVRPEncod ingsolution) {226 public VRPEvaluation EvaluateTour(Tour tour, IVRPEncodedSolution solution) { 228 227 return evaluator.EvaluateTour(this, tour, solution); 229 228 } … … 233 232 } 234 233 235 public double GetInsertionCosts(VRPEvaluation eval, IVRPEncod ingsolution, int customer, int tour, int index, out bool feasible) {234 public double GetInsertionCosts(VRPEvaluation eval, IVRPEncodedSolution solution, int customer, int tour, int index, out bool feasible) { 236 235 return evaluator.GetInsertionCosts(this, solution, eval, customer, tour, index, out feasible); 237 236 }
Note: See TracChangeset
for help on using the changeset viewer.