Sandwich planning: machine-dependent template plans (time-limited exploration), cost of exact vertex solves
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- performance
Research direction
Start by reading prodigy/analysis/lowerbounds/parameters.py and the Exploration.run implementation it calls with time_limit=6.0; run the sandwich example tests to capture current timings and whether template shapes vary under load. For the second point, locate _exact_vertex and its fmpq_mat.solve retry loop, then try reusing one factorisation or restricting to active constraints. Done means deterministic exploration budgets with the time limit only as a safeguard, plus measured test-time reduction and unchanged certificates.
Written by the indexing model from the issue text.
Description
Found in #471; both points exist on main.
- Template plans depend on the machine.
plan_parameters(prodigy/analysis/lowerbounds/parameters.py) runsExploration.run(..., time_limit=6.0)twice. On a slow or loaded machine the exploration stops earlier. The estimated decay rates, and with them the template shapes, can then differ. Soundness is not affected, because every certificate is checked exactly. But whether a bound is found, and how tight it is, depends on the load, so results and tests are not reproducible across machines. Replace the time limit with a deterministic budget, such as a number of states or steps, and keep the time limit only as an outer safeguard. - The sandwich examples remain one of the most expensive test groups (3–23 s each locally; the CI is 2–4× slower). The next largest cost after #471 is
_exact_vertex: rationalfmpq_mat.solveof systems up to ~600×600, taking 0.1–0.2 s each, with up to 6 retries at different tolerances. Options are to reuse a factorisation across the retries, or to solve a smaller system restricted to the active constraints.
- Dominant language
- Python
- Stars
- 6
- Forks
- 2
- Avg merge
- 1h 52m
- Merged PRs (30d)
- 187
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LKlinke/Prodigy
-
area: engines bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area: gui bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area: gui bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
area: engines bug priority: medium
Maintainers usually reply within 1 day
-
area: maintenance priority: low
Maintainers usually reply within 1 day
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day