SolutionGetRouteLength Method

Returns the number of nodes in the route for this Resource. This includes the start and end nodes. Therefore if no Jobs have been assigned to the Resource then the route length is two.

Definition

Namespace: VRSolver
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public int GetRouteLength(
	Resource resource
)

Parameters

resource  Resource
The Resource.

Return Value

Int32
The number of nodes (JobParts plus start and end nodes) in the route for this Resource.

Exceptions

ArgumentNullExceptionResource is null.
ArgumentExceptionResource does not exist in the Problem.

See Also