SolutionFindBestInsertion Method

Finds the best insertion positions for a Job's JobParts within an existing or empty route. It does not do the insertions but returns a JobInsertion result which indicates if a feasible insertion is possible and the solution's change in objective function value if the insertion is done. The insertion can then be done using the DoInsert method.

Definition

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

Parameters

resource  Resource
The resource to try and assign the Job to.
job  Job
The Job to insert.

Return Value

JobInsertion
Returns the JobInsertion result which indicates if a feasible insertion was found and the solution's change in objective function value if the insertion is done. The insertion can then be done using the JobInsertion result by using the DoInsert method.

Exceptions

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

See Also