Click or drag to resize

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.

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

Parameters

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

Return Value

Type: 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
ExceptionCondition
ArgumentNullExceptionResource is null.
ArgumentNullExceptionJob is null.
ArgumentExceptionResource does not exist in the Problem.
See Also

www.routingautomation.com | support