SolutionGet Route Length 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
The number of nodes (JobParts plus start and end nodes) in the route for this Resource.
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public int GetRouteLength(
Resource resource
)VB
Public Function GetRouteLength (
resource As Resource
) As IntegerC++
public:
int GetRouteLength(
Resource^ resource
)F#
member GetRouteLength :
resource : Resource -> int Parameters
- resource Resource
- The Resource.
Return Value
Int32The number of nodes (JobParts plus start and end nodes) in the route for this Resource.
Exceptions
| ArgumentNullException | Resource is null. |
| ArgumentException | Resource does not exist in the Problem. |