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

Accelerate PR solving for exponential cost functions #32

Open
samblau opened this issue Dec 1, 2020 · 0 comments
Open

Accelerate PR solving for exponential cost functions #32

samblau opened this issue Dec 1, 2020 · 0 comments
Assignees

Comments

@samblau
Copy link
Member

samblau commented Dec 1, 2020

An exponential-based cost function is the most physically motivated and easily justifiable form, but it will inherently yield a wide range of costs that span many orders of magnitude which makes PR solving very difficult and time-consuming. Our PR solving procedure depends on being able to iteratively add costs via PR cost updates in order to eventually get path ordering to switch. However, if the shortest and 2nd shortest paths differ in cost by e.g. 10,000 (where the shortest path has an unsolved nested PR, and the 2nd shortest does not) and each iteration only increases the cost of the shortest path by e.g. 10, then it will require 1000 iterations for the 2nd shortest path to become the shortest and thus to solve the principle PR in question.

Perhaps there could be a way to accelerate PR solving in this instance by checking if a PR cost is increasing by the same amount, let's call it dx, for e.g. 5 or 10 iterations in a row, and in that case then starting to increase it by 10*dx for a certain number of iterations instead, and then perhaps continuing to increase dx by some factor after waiting some number of iterations until eventually a path ordering switch occurs, resulting in the principle PR being solved.

This is definitely a half-baked idea, and I can easily imagine corner cases that it would encounter problems with, but I this should serve as the general issue of how we accelerate PR solving with physically motivated exponential cost functions rather than simply trying to use cost functions that bring costs closer together, which makes PR solving easier but is kinda the easy way out and is not physically justified.

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

4 participants