Click or drag to resize

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.

Namespace:  VRSolver
Assembly:  VRSolver (in VRSolver.dll) Version: 1.13.0.0
Syntax
public int GetRouteLength(
	Resource resource
)

Parameters

resource
Type: VRSolverResource
The Resource.

Return Value

Type: Int32
The number of nodes (JobParts plus start and end nodes) in the route for this Resource.
Exceptions
ExceptionCondition
ArgumentNullExceptionResource is null.
ArgumentExceptionResource does not exist in the Problem.
See Also

www.routingautomation.com | support