ProblemSetTravelTimes Method

Sets the TravelTime matrix.

Definition

Namespace: VRSolver
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public void SetTravelTimes(
	TravelTime[,,] matrix
)

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

ArgumentNullExceptionMatrix is null.

See Also