Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify unsigned constraints a bit #77

Merged
merged 5 commits into from
Nov 21, 2024
Merged

simplify unsigned constraints a bit #77

merged 5 commits into from
Nov 21, 2024

Conversation

exaexa
Copy link
Member

@exaexa exaexa commented Nov 11, 2024

Without any extra treatment, this uses 2 variables + 6 inequality constraints per a split variable with 2 constraints. Which is a bit of an improvement from the original 3 variables + 6 inequality constraints + 1 equality constraint.

Additionally, 2 of the new 6 inequality constraints are redundant and may be removed manually.

Probably needs tests and a coverage fix.

Without any extra treatment, this uses 2 variables + 6 inequality constraints
per a split variable with 2 constraints. Which is a bit of an improvement from
the original 3 variables + 6 inequality constraints + 1 equality constraint.

Additionally, 2 of the new 6 inequality constraints are redundant and may be
removed manually.
@exaexa exaexa requested a review from stelmo November 11, 2024 20:26
@exaexa exaexa marked this pull request as draft November 11, 2024 20:26
@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (6c200ef) to head (00449d6).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #77   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           36        36           
  Lines          576       584    +8     
=========================================
+ Hits           576       584    +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@exaexa exaexa marked this pull request as ready for review November 11, 2024 21:11
Copy link
Member

@stelmo stelmo left a comment

Choose a reason for hiding this comment

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

I just compared the size of the models in master vs this PR, and they are exactly the same

@exaexa exaexa marked this pull request as draft November 12, 2024 11:21
@exaexa
Copy link
Member Author

exaexa commented Nov 12, 2024

I just compared the size of the models in master vs this PR, and they are exactly the same

missed that one, should be complete now. Test coverage gonna suffer though, will need to add some creativity later.

@exaexa exaexa marked this pull request as ready for review November 12, 2024 14:01
@exaexa exaexa requested a review from stelmo November 12, 2024 14:01
@exaexa
Copy link
Member Author

exaexa commented Nov 12, 2024

I added a standalone example to cover the variable splitting possibilities.

@exaexa exaexa merged commit ada9b26 into master Nov 21, 2024
4 checks passed
@exaexa exaexa deleted the mk-simpler-unsigned branch November 21, 2024 19:00
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.

3 participants