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

fix a bug in fast regret #376

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jie31best
Copy link

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:

  • fix the route version inconsistency issue (i.e., the bug);
  • add comparison of job ids when scores are equal (so that it is consistent with the regular regret).

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

@oblonski
Copy link
Member

@jie31best Thanks a lot. It seems that there are failing tests. Do you know why?

@jie31best
Copy link
Author

@oblonski the log says:

Error: JAVA_HOME is not defined correctly.
We cannot execute /usr/lib/jvm/java-7-oracle/bin/java

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

Successfully merging this pull request may close these issues.

3 participants