Skip to content

feat: Post equality as single predicate instead of splitting in two - #305

Merged
ImkoMarijnissen merged 2 commits into
mainfrom
feat/post-equality-as-single-predicate
Nov 10, 2025
Merged

ImkoMarijnissen merged 2 commits into
mainfrom
feat/post-equality-as-single-predicate

Conversation

@ImkoMarijnissen

@ImkoMarijnissen ImkoMarijnissen commented Oct 15, 2025 •

Copy link
Copy Markdown
Contributor

Currently, whenever we post a predicate [x == v], we decompose it into [x >= v] /\ [x <= v]. However, this can make certain structures unnecessarily complicated.

This PR aims to address this by posting [x == v] directly instead of decomposing.

TODO

  • Check for any other locations where we make this assumption (@maartenflippo and @EmirDe, your input would be much appreciated here!)
  • Check the performance

Experiments

Overall

main:

{'ERROR': 19,
 'OPTIMAL': 120,
 'SATISFIABLE': 228,
 'UNKNOWN': 114,
 'UNSATISFIABLE': 6}

feat/post-equality-as-single-predicate:

{'ERROR': 19,
'OPTIMAL': 122,
'SATISFIABLE': 228,
'UNKNOWN': 112,
'UNSATISFIABLE': 6}

MiniZinc Scoring

{
   'main': 180.59,
   'feat/post-equality-as-single-predicate': 177.41
}

Primal Integral

{
   'main': 25.06,
   'feat/post-equality-as-single-predicate': 23.63,
}

@maartenflippo maartenflippo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this looks good to me. The only place I can come up with that may be affected by this change is in the conflict_analysis_context.rs on lines 236-247. I will double check this myself, but others may have a clear idea one way or the other.

@maartenflippo
maartenflippo self-requested a review October 24, 2025 11:29
@ImkoMarijnissen
ImkoMarijnissen merged commit 8f43208 into main Nov 10, 2025
@ImkoMarijnissen
ImkoMarijnissen deleted the feat/post-equality-as-single-predicate branch November 10, 2025 07:47
ImkoMarijnissen added a commit that referenced this pull request Nov 10, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.2.2](pumpkin-core-v0.2.1...pumpkin-core-v0.2.2)
(2025-11-10)


### Features

* Adding logging of brancher statistics on completion
([#257](#257))
([9d26842](9d26842))
* Post equality as single predicate instead of splitting in two
([#305](#305))
([8f43208](8f43208))
* Adding edge-finding for the disjunctive constraint
([#275](#275))
([606a7d8](606a7d8))
* Lazy explanation for linear less than or equals
([#290](#290))
([3515c7a](3515c7a))
* Write proofs with gzip encoding
([#264](#264))
([83f76da](83f76da))
* Remove unnecessary variables introduced by bool2int
([#232](#232))
([cf0b2fe](cf0b2fe))
* Use lazy explanations for BinaryEq
([#231](#231))
([4a89a5e](4a89a5e))
* Support warm_start and ignore constraint_name search annotations
([#235](#235))
([d7e8bb0](d7e8bb0))


### Bug Fixes

* Add pumpkin-crates to default-members
([#286](#286))
([bf7ff80](bf7ff80))
* Correctly reporting unknown solution in optimisation and solution
enumeration ([#247](#247))
([8c0f27c](8c0f27c))
* Create correct reason for preprocessing permanent nogood + Removing
unassigned status for PredicateId
([#250](#250))
([98ba136](98ba136))
* Provide `SelectionContext` instead of `Assignments` to
`Brancher::synchronise`
([#312](#312))
([9548114](9548114))
* Remove debug printing
([#254](#254))
([0ca93a2](0ca93a2))
* Remove the terms with zero coefficients from linear constraints
([#269](#269))
([576887e](576887e))
* Take root-propagation into account in the LUS optimiser
([#253](#253))
([d30ed06](d30ed06))
* Reduce cost of predicate notification
([#259](#259))
([d38e990](d38e990))

### Refactors

* Avoid unnecessary traversals of profiles in time-tabling + Improving
Explanations ([#282](#282))
([f7a4fdb](f7a4fdb))
* Don't use binary equals when logging the full proof
([#252](#252))
([4454d93](4454d93))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Imko Marijnissen <[email protected]>
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.

2 participants