Skip to content

feat(lprelax): add a first implementation of an LP relaxation reasoner based on HiGHS - #244

Draft
nrealus wants to merge 2 commits into
feat/extra-reasonersfrom
feat/lprelax-reasoner
Draft

feat(lprelax): add a first implementation of an LP relaxation reasoner based on HiGHS#244
nrealus wants to merge 2 commits into
feat/extra-reasonersfrom
feat/lprelax-reasoner

Conversation

@nrealus

@nrealus nrealus commented Jul 22, 2026

Copy link
Copy Markdown
Member

This PR introduces (a first implementation of) a LP relaxation reasoner based on the HiGHS solver as a backend.

The reasoner maintains a LP model, whose columns' bounds can be updated by setting "LP literals" (LpLit), analogously to the main CSP model. The main CSP model and LP model can be bound such that the LP model's columns' upper/lower bounds are updated after observing changes on the main CSP variables' upper/lower bounds. Similarly, these two models can be bound such that, when the LP model is found unsatisfiable, the LpLits composing the infeasible subset are replaced by implicant Lits (literals of the main model) yielding a conflict explanation given to the main CSP.

Note that the code is still rather unpolished. It should be mentioned that non-negligeable overhead is due to the internal HiGHS model's updates (when updating column bounds). Moreover, to avoid overhead, the LP is currently solved only at the root decision level. Ultimately, the code is far from perfect and will have to evolve, notably to align with the API of a future incremental LP reasoner in the works.

@nrealus
nrealus changed the base branch from master to feat/extra-reasoners July 22, 2026 12:09
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.

1 participant