Click or drag to resize

SolutionAddJobToRoute Method

Adds the Job's JobParts to the end of the Resource's current route. This will add the JobParts even if it results in an infeasible solution. To insert the Job's JobParts at the best feasible position in the Resource's current route, use FindBestInsertion(Resource, Job) instead.

Namespace:  VRSolver
Assembly:  VRSolver (in VRSolver.dll) Version: 1.13.0.0
Syntax
public bool AddJobToRoute(
	Resource resource,
	Job job
)

Parameters

resource
Type: VRSolverResource
The resource to assign the Job to.
job
Type: VRSolverJob
The Job to assign.

Return Value

Type: Boolean
Returns false if one or more of the JobParts could not be inserted. Returns true otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionResource is null.
ArgumentNullExceptionJob is null.
ArgumentExceptionResource does not exist in the Problem.
See Also

www.routingautomation.com | support