SolutionFind Best Insertion 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
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.
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public JobInsertion FindBestInsertion(
Resource resource,
Job job
)VB
Public Function FindBestInsertion (
resource As Resource,
job As Job
) As JobInsertionC++
public:
JobInsertion^ FindBestInsertion(
Resource^ resource,
Job^ job
)F#
member FindBestInsertion :
resource : Resource *
job : Job -> JobInsertion Parameters
Return Value
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
| ArgumentNullException | Resource is null. |
| ArgumentNullException | Job is null. |
| ArgumentException | Resource does not exist in the Problem. |