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.

Definition

Namespace: VRSolver
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public bool AddJobToRoute(
	Resource resource,
	Job job
)

Parameters

resource  Resource
The resource to assign the Job to.
job  Job
The Job to assign.

Return Value

Boolean
Returns false if one or more of the JobParts could not be inserted. Returns true otherwise.

Exceptions

ArgumentNullExceptionResource is null.
ArgumentNullExceptionJob is null.
ArgumentExceptionResource does not exist in the Problem.

See Also