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
Syntaxpublic JobInsertion FindBestInsertion(
Resource resource,
Job job
)
Public Function FindBestInsertion (
resource As Resource,
job As Job
) As JobInsertion
public:
JobInsertion^ FindBestInsertion(
Resource^ resource,
Job^ job
)
member FindBestInsertion :
resource : Resource *
job : Job -> JobInsertion
Parameters
- resource
- Type: VRSolverResource
The resource to try and assign the Job to. - job
- Type: VRSolverJob
The Job to insert.
Return Value
Type:
JobInsertionReturns 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
See Also