Changeset 15066 for stable/HeuristicLab.Problems.Instances.VehicleRouting
- Timestamp:
- 06/26/17 15:19:25 (7 years ago)
- Location:
- stable
- Files:
-
- 7 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14478,14481-14482,14504
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.Instances.VehicleRouting/3.4/GoldenFormat/GoldenParser.cs
r14186 r15066 366 366 367 367 int index = int.Parse(tokens[0]); 368 double value = double.Parse(tokens[1] );368 double value = double.Parse(tokens[1], System.Globalization.CultureInfo.InvariantCulture); 369 369 370 370 demands[index] = value; -
stable/HeuristicLab.Problems.Instances.VehicleRouting/3.4/HeuristicLab.Problems.Instances.VehicleRouting-3.4.csproj
r11932 r15066 158 158 <EmbeddedResource Include="Data\CordeauMDTW.opt.zip" /> 159 159 <EmbeddedResource Include="Data\Homberger.opt.zip" /> 160 <EmbeddedResource Include="Data\Solomon.opt.zip" /> 160 161 <None Include="Plugin.cs.frame" /> 161 162 <Compile Include="Plugin.cs" /> -
stable/HeuristicLab.Problems.Instances.VehicleRouting/3.4/LiLimFormat/LiLimParser.cs
r14186 r15066 149 149 150 150 vehicles = int.Parse(m[0].Value); 151 capacity = double.Parse(m[1].Value );151 capacity = double.Parse(m[1].Value, System.Globalization.CultureInfo.InvariantCulture); 152 152 153 153 line = reader.ReadLine(); -
stable/HeuristicLab.Problems.Instances.VehicleRouting/3.4/SolomonFormat/SolomonFormatInstanceProvider.cs
r14186 r15066 21 21 22 22 using System; 23 using System. Collections.Generic;23 using System.Globalization; 24 24 using System.IO; 25 25 using System.Linq; … … 64 64 string date = ExtractValue(reader.ReadLine()); 65 65 string reference = ExtractValue(reader.ReadLine()); 66 reader.ReadLine(); // Solution 67 68 var routesQuery = 69 from line in reader.ReadAllLines() 70 where !string.IsNullOrEmpty(line) 71 let tokens = ExtractValue(line).Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) 72 let stops = tokens.Select(int.Parse).Select(s => s - 1) 73 select stops; 74 75 var routes = routesQuery.Select(s => s.ToArray()).ToArray(); 76 77 instance.BestKnownTour = routes; 66 switch (reader.ReadLine().Trim()) { // "Solution" or "Distance" 67 case "Solution": 68 var routesQuery = from line in reader.ReadAllLines() 69 where !string.IsNullOrEmpty(line) 70 let tokens = ExtractValue(line).Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) 71 let stops = tokens.Select(int.Parse).Select(s => s - 1) 72 select stops; 73 var routes = routesQuery.Select(s => s.ToArray()).ToArray(); 74 instance.BestKnownTour = routes; 75 break; 76 case "Distance": 77 double quality = double.Parse(reader.ReadLine(), CultureInfo.InvariantCulture); 78 instance.BestKnownQuality = quality; 79 break; 80 } 78 81 } 79 82 } -
stable/HeuristicLab.Problems.Instances.VehicleRouting/3.4/SolomonFormat/SolomonParser.cs
r14186 r15066 143 143 144 144 vehicles = int.Parse(m[0].Value); 145 capacity = double.Parse(m[1].Value );145 capacity = double.Parse(m[1].Value, System.Globalization.CultureInfo.InvariantCulture); 146 146 147 147 for (int i = 0; i < 4; i++) {
Note: See TracChangeset
for help on using the changeset viewer.