Minimum amount of jobs in VRP

Hello. I am solving a VRP with jsprit. When I have a VRP with one job, jsprit throws an IOB exception. What is the minimum amount of jobs in a VRP, what are some other restrictions I must know about ?

I think as long as you have any number of jobs should work. (Say you have 5 vehicles, but only one has the skill for the job, it will choose that vehicle out of the 5 available).

It depends on how you’re defining your solution and what constraints you have for the problem. If you had a minimum number of jobs needed per vehicle, you would set a hard constraint and pass the constraint to the constraint manager object.

If you post some of your code or the exact error message that may help in giving you a more clear answer.

Powered by Discourse