Changeset 11270
- Timestamp:
- 08/05/14 15:52:58 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering/3.3/OrienteeringProblem.cs
r11269 r11270 303 303 var coordinates = Coordinates; 304 304 int dimension = coordinates.Rows; 305 var distances = DistanceMatrix;305 var distances = new double[dimension, dimension]; 306 306 for (int i = 0; i < dimension - 1; i++) { 307 307 for (int j = i + 1; j < dimension; j++) { … … 314 314 } 315 315 } 316 DistanceMatrix = new DistanceMatrix(distances); 316 317 } 317 318 … … 353 354 354 355 StartingPoint = new IntValue(0); // Depot is interpreted as start point 355 TerminusPoint = new IntValue( 0); // Last city is interpreted als end point356 TerminusPoint = new IntValue(data.Dimension - 1); // Last city is interpreted als end point 356 357 357 358 MaximumDistance = new DoubleValue(data.Capacity * 2); // capacity is interpreted as max distance
Note: See TracChangeset
for help on using the changeset viewer.