Skip to content

Conversation

@IgnaceBleukx
Copy link
Collaborator

As discussed offline, global functions can be decomposed into a numerical value, and some defining constraints.

This PR accomplishes that by removing the decompose_comparison function we have now.
It also massively simplifies the decompose_in_tree code as there are way fewer cases to check.

@IgnaceBleukx
Copy link
Collaborator Author

Ok so it turned out to be quite some more work that I expected it to be, because of the way we handle objectives, but it should be ready for review now.

Currently, the new element decomposition is not the linear-friendly one, as it does not work when the array we're indexing contains integer variables.

sum((i == idx) * arr[i]) 

We can change this easily later now, but first #769 needs to merged.

@IgnaceBleukx IgnaceBleukx requested a review from tias December 4, 2025 18:11
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