Click or drag to resize

SolutionInsertJobPart Method

Inserts a JobPart into a Resource's route directly after the node indicated by the position parameter. The position parameter starts at zero. This means the first node in the route (the Resource's starting location) is position zero. This will insert the JobParts even if it results in an infeasible solution.

Namespace:  VRSolver
Assembly:  VRSolver (in VRSolver.dll) Version: 1.13.0.0
Syntax
public bool InsertJobPart(
	Resource resource,
	JobPart jobPart,
	int position
)

Parameters

resource
Type: VRSolverResource
The Resource to assign the JobPart to.
jobPart
Type: VRSolverJobPart
The JobPart to be inserted.
position
Type: SystemInt32
The position to insert the JobPart directly after (the first position i.e. the locations starting point is position zero).

Return Value

Type: Boolean
False if the insertion could not be completed. True otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionResource is null.
ArgumentNullExceptionJobPart is null.
ArgumentExceptionResource does not exist in the Problem.
ArgumentExceptionPosition in not valid for Resource's route.
ArgumentExceptionJobPart cannot be inserted after the Resource's end location.
See Also

www.routingautomation.com | support