Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the bug is reported in the forum:
https://discuss.graphhopper.com/t/questions-about-fast-regret-and-dependency-type-of-jobs/2349/2
the PR contains the following:
as a matter of fact, after the changes, the version number in the VersionedInsertionData is not useful, because it is always only the latest version that is stored. actually we might not need a TreeSet to store the VersionedInsertionData's, we could just use an array (this is not included in the PR).
as reported in this update:
after I have made the above changes, and if I deactivate the insertion noise maker (so that the random numbers used in each ruin and recreate process will be the same), the solution obtained by the regular regret and that obtained by the fast regret when all jobs are defined with a dependency type INTRA_ROUTE are the same for the tested problems.
however, for some problems (2 out of 7 tested), the solution obtained by the fast regret when not all jobs are defined with a dependency type INTRA_ROUTE is different. I am trying to figure out why.
Best regards,
He