Skip to content
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

Relative time constraints between jobs #113

Open
diplay opened this issue Jun 20, 2023 · 1 comment
Open

Relative time constraints between jobs #113

diplay opened this issue Jun 20, 2023 · 1 comment

Comments

@diplay
Copy link

diplay commented Jun 20, 2023

Hello!

Is there a possibility to set relative time constraints between jobs like "Job B must be done after job A in X minutes"? I see that there is a relation constraint which sets order between jobs but nothing is said about a time interval between jobs.

If there is no such possibility I could implement it but I need some guidance because I'm not familiar with Rust language and with solver architecture.

@reinterpretcat
Copy link
Owner

Hi!

No, there is not such constraint. You can try to use activity order feature, but it doesn't provide Job B must be done after job A in X minutes functionality, only strict ordering.

If you want to play with your own implementation, you can start from checking a Feature concept: https://github.com/reinterpretcat/vrp/blob/master/vrp-core/src/models/goal.rs#L146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants