SolutionAdd Job To Route 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
Returns false if one or more of the JobParts could not be inserted. Returns true otherwise.
Assembly: VRSolver (in VRSolver.dll) Version: 1.15.0+d867f7e856f281547f683ef6449a86e433a2356d
C#
public bool AddJobToRoute(
Resource resource,
Job job
)VB
Public Function AddJobToRoute (
resource As Resource,
job As Job
) As BooleanC++
public:
bool AddJobToRoute(
Resource^ resource,
Job^ job
)F#
member AddJobToRoute :
resource : Resource *
job : Job -> bool Parameters
Return Value
BooleanReturns false if one or more of the JobParts could not be inserted. Returns true otherwise.
Exceptions
| ArgumentNullException | Resource is null. |
| ArgumentNullException | Job is null. |
| ArgumentException | Resource does not exist in the Problem. |