ProblemSet Travel Times Method
Sets the TravelTime matrix.
Definition
Namespace: VRSolver
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public void SetTravelTimes(
TravelTime[,,] matrix
)VB
Public Sub SetTravelTimes (
matrix As TravelTime(,,)
)C++
public:
void SetTravelTimes(
array<TravelTime^,3>^ matrix
)F#
member SetTravelTimes :
matrix : TravelTime[,,] -> unit Parameters
- matrix TravelTime
- The times and distances are represented in a 3D array. The first dimension is the TimeMatrixIndex used when adding a resource to the problem. The second and third dimensions are location indexes. For example, the TravelTime for a resource traveling between location X and Y should be stored at matrix[resource.TimeMatrixIndex, locX.index, locY.index]
Exceptions
| ArgumentNullException | Matrix is null. |