SolutionUnassignJobPart(Resource, Int32) Method

Un-assigns a JobPart from a Resource's route. The JobPart is the part at the indicated position in the route. The position parameter starts at zero. This means the first node in the route (the Resource's starting location) is position zero.

Definition

Namespace: VRSolver
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public bool UnassignJobPart(
	Resource resource,
	int position
)

Parameters

resource  Resource
The Resource to un-assign the JobPart from.
position  Int32
The position in the Resource's route to un-assign.

Return Value

Boolean
Returns false if the JobPart was not assigned. True otherwise

Exceptions

ArgumentNullExceptionResource is null.
ArgumentExceptionResource does not exist in the Problem.
ArgumentExceptionPosition in not valid for Resource's route.
ArgumentExceptionCannot un-assign the Resource's starting location.
ArgumentExceptionCannot un-assign the Resource's end location.

See Also