-
Notifications
You must be signed in to change notification settings - Fork 71
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
Error - called Option::unwrap()
on a None
value
#141
Comments
Forgot to mention, but error seems to be different from #140. It fails with manhattan distances as well, no need to use a custom matrix. |
Hi, thanks for feedback! Just to note: vicinity clustering is pretty an experimental feature. I've briefly checked the problem and seems related to relation feature usage with vicinity feature. The root cause (most likely, still investigating) is that job1 and job2 are merged into one job in preprocessing step and this new job is used in internal job registry, not old ones. Possible solutions so far:
I guess you want to have two jobs to be clustered and then assigned to specific vehicle. I would need to think how to make this possible if you don't want upfront which jobs can be clustered together (otherwise you can use skills to lock them to specific vehicle) |
Interesting, thanks for the info. |
Yes, adding different skills/compatibility will prevent jobs to be clustered. I'll will fix the issue to avoid panic by preventing jobs from relation to be clustered. |
I've added the fix into the current master, will take some time to release all the changes |
Thanks for the improvement. I will stop using clustering for now. Just realized I don't need it. I was using it mostly to group the same location into a single stop, but I believe this is done already even without clustering. |
This release combines many changes, but essentials are: - internal route state api simplification - increased performance - several experimental features - bug fixes * original job place index in activity place to simplify activity-job place matching * `experimental`: a new type of location in pragmatic format to model zero distance/duration from it to any other location. This could be useful to model optional vehicle start location. * allow user to pass alternative objectives in goal context to guide the search * `experimental`: a new `fast-service` objective function to serve jobs as soon as possible * experimental `dispatch` feature * apply code style refactoring * improve selection sampling search * update dependencies * improve a bit documentation * refactor route state * do not use hashmaps to store activity states * double reload assignment when initial solution is used (#126) * unexpected total_order behavior in dynamic heuristic (#128) * improve validation rule for break with time offset (#129) * fix issue with skills (#133) * do not cluster jobs if they are defined in relations (#141)
Hey, congrats on the project! I'm considering adopting it and I'm doing some tests.
All more common stuff worked very well for me so far. But I'm getting this error on a specific scenario:
I carefully deleted everything in my scenario until I got the minimal reproducible problem. Turns out it is a problem when combining:
Could you please have a look? I hope you can easily fix it with the info below.
Problem
Stacktrace
The text was updated successfully, but these errors were encountered: