-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom conditions for jobs/fleet definition #143
Comments
Hi, I think you can try to model this with job and vehicle skills, see documentation and example file: https://reinterpretcat.github.io/vrp/concepts/pragmatic/problem/jobs.html |
This sounds like different vehicle capacities. Vehicle has capacity: Job of type A has size: |
Ok, but it isn’t clear how the skills feature works. So @reinterpretcat do you want to say that skills guarantee that each vehicle picks up only one job which requires A skill? |
Seems like I missed a job amount constraint from your initial message.. If you have such constraint, then I would agree with @leobudima - multi-dimensional capacity/demand could be used here. |
@reinterpretcat please correct me if I’m wrong. Currently, vrp does not support such problem type, and I have to do some extra manipulation with data to satisfy the constraint, correct? Thanks for the quick response! |
Such problem type directly through its pragmatic format - no. But you can model some of directly unsupported features using built-in features, like one mentioned above. This is why api design is tried to be a bit generalized: such approach unlocks more advanced scenarios to be supported out of box, through other features. Alternative way - add your own implementation as a feature which would require you to use the library as a rust crate. Sometimes, I can add a new feature if it seems interesting for me (and the project). |
Hi @reinterpretcat , is it possible to set custom conditions for jobs, for example, there are jobs of three types A, B, and C. And it is necessary to specify that a vehicle can only take one job of type A, two jobs of type B, and as many jobs of type C as needed?
The text was updated successfully, but these errors were encountered: