-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
There was a problem hiding this 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
missed that one, should be complete now. Test coverage gonna suffer though, will need to add some creativity later. |
I added a standalone example to cover the variable splitting possibilities. |
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.