Changeset 8086 for branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Interpreters/PDPTWInterpreter.cs
- Timestamp:
- 06/22/12 11:11:38 (12 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 2 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)
- Property svn:ignore
-
old new 20 20 bin 21 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting (added) merged: 7895,7900,7904,7906,7923,7934,7999,8006,8053
- Property svn:mergeinfo changed
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Interpreters/PDPTWInterpreter.cs
r8052 r8086 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Data; 26 23 using HeuristicLab.Problems.Instances; 27 using HeuristicLab.Problems.VehicleRouting. Interfaces;24 using HeuristicLab.Problems.VehicleRouting.Encodings.Potvin; 28 25 using HeuristicLab.Problems.VehicleRouting.ProblemInstances; 29 using HeuristicLab.Data;30 using HeuristicLab.Problems.VehicleRouting.Encodings.Potvin;31 26 32 27 namespace HeuristicLab.Problems.VehicleRouting.Interpreters { 33 public class PDPTWInterpreter : IVRPDataInterpreter<PDPTWData> {28 public class PDPTWInterpreter : IVRPDataInterpreter<PDPTWData> { 34 29 public VRPInstanceDescription Interpret(IVRPData data) { 35 30 PDPTWData cvrpData = data as PDPTWData; … … 40 35 41 36 CVRPPDTWProblemInstance problem = new CVRPPDTWProblemInstance(); 42 if (cvrpData.Coordinates != null)37 if (cvrpData.Coordinates != null) 43 38 problem.Coordinates = new DoubleMatrix(cvrpData.Coordinates); 44 39 if (cvrpData.MaximumVehicles != null) … … 62 57 PotvinEncoding solution = new PotvinEncoding(problem); 63 58 64 for (int i = 0; i < cvrpData.BestKnownTour.GetLength(0); i++) {59 for (int i = 0; i < cvrpData.BestKnownTour.GetLength(0); i++) { 65 60 Tour tour = new Tour(); 66 61 solution.Tours.Add(tour); … … 70 65 } 71 66 } 72 67 73 68 result.BestKnownSolution = solution; 74 69 }
Note: See TracChangeset
for help on using the changeset viewer.