CP-SAT: TimeTableEdgeFinding can report false INFEASIBLE for large cumulative scheduling models
Maintainers usually reply within 1 day
Assessment
This issue has not been assessed yet.
Description
Version and environment
OR-Tools: 10.0 development build (RC1)
Audited commit:
e58369423a1af21e8d5a996a4f2255420d1eb7c0Solver: CP-SAT
Platform: Linux x86-64
Python: 3.13
Build: From upstream source
Description
During a mathematical correctness audit of CP-SAT cumulative scheduling propagators, we observed incorrect INFEASIBLE results for synthetic models whose feasibility was independently established.
The investigation identified an arithmetic correctness issue in:
File:
ortools/sat/timetable_edgefinding.ccComponent:
TimeTableEdgeFinding
The existing arithmetic safeguards appear insufficient to guarantee that all intermediate energy calculations remain representable within signed 64-bit integer limits.
Expected behavior
CP-SAT must not classify a mathematically feasible model as INFEASIBLE.
When an intermediate energy calculation cannot be represented safely, the propagator should conservatively avoid making an unsupported inference.
Actual behavior
The unmodified audited build returned INFEASIBLE on feasible cumulative scheduling instances.
Experimental evidence
The following results were obtained from actual source builds and regression testing:
Test | Original build | Experimental correction -- | -- | -- Targeted native regression tests | 6 failures | 6 passes UBSan signed arithmetic findings in the affected propagator | 2 | 0 observed Existing cumulative and timetable regression targets | — | PASSA separate Python differential test using an independent mathematical oracle also identified an incorrect infeasibility result.
The combined audit build subsequently recovered the correct optimal solution.
For transparency, the Python differential result was obtained using a combined set of audit corrections, whereas the targeted native regression tests evaluated the isolated arithmetic correction.
Suggested investigation
Please review the representability checks and intermediate energy arithmetic in TimeTableEdgeFinding.
Potential approaches include checked arithmetic, wider intermediate arithmetic, or conservatively skipping propagation when the required calculations cannot be represented safely.
The experimental correction is not presented as a definitive upstream implementation.
Limitations
Runtime testing was performed on the specified audited commit.
The issue has not yet been independently runtime-verified against the latest upstream revision.
The experimental results establish a correctness concern within the tested cases, not a general proof covering every execution path.
Transparency
This investigation was conducted using AI-assisted source-code review, native regression tests, sanitizer checks, and independent mathematical oracles.
The reported test results were obtained from actual executions using synthetic models, without proprietary application data.
- Dominant language
- C++
- Stars
- 14.5k
- Forks
- 2.6k
- Avg merge
- 9h 43m
- Merged PRs (30d)
- 53
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the 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 google/or-tools
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
Maintainers usually reply within 1 day
-
Python (v10.0-rc.1): Model.restore_assignment() and Assignment.objective() take ownership of C++-owned objects (segfault)Possibly taken @Mizux claimed this today. OpenLang: Python Solver: Routing & CP Solver
google/or-tools#5670 · 1 assignee ·
Maintainers usually reply within 1 day
-
[CP-SAT] Duplicate timer registration in StartDirectSolver when UserTimer aliases WallTimerPossibly taken @lperron claimed this 1 day ago. OpenSolver: CP-SAT Solver
Difficulty 3/5 Half a day Newbie friendliness 85/100
google/or-tools#5659 · 5 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
Similar issues
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
ClickHouse/clickhouse-odbc#680 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ionut-mihalache/aqua#31 · 1 comment ·
-
LWG
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
needs-kind
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
villagesql/villagesql-server#1702 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/vcpkg-tool#2191 · 1 reaction ·
Maintainers usually reply within 1 day