-
Notifications
You must be signed in to change notification settings - Fork 550
Map Constraint.Feasible/Infeasible to concrete constraints #3546
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
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
0e04951
Map Constraint.Infeasible/Feasible to trivial inequalities
jsiirola dc53dbc
Rework set_value to remove duplicate exception
jsiirola d5cdeec
Clarify reference set name
jsiirola fe3ccb5
Use more modern super() / type() syntax
jsiirola 5ddf0b6
Fix typo
jsiirola 537cd7b
Port constraint rework to logical_constraint
jsiirola efa4381
Support passing Feasible/Infeasible in Disjunction expression lists
jsiirola 57c3a27
Support BooleanConstant in logical_to_disjunctive
jsiirola 9e05fa9
Handle constant expressions in logical_to_disjunctive
jsiirola 8943ebb
Support constant expressions in logical_to_linear
jsiirola ccffb16
Update tests for trivial feasible/infeasible constraints
jsiirola ceca444
NFC: justify using inequalities over equalities
jsiirola f2c0147
set_value() should not change the constraint data when raising an exc…
jsiirola 869ef48
Add 'expr' to disable_methods, mab body through expr
jsiirola 40787a9
Use __name__ for logger scope
jsiirola e8b3219
Remove unreachable code
jsiirola 935b443
Leverage is_logical_type for detecting logical expressions/vars
jsiirola 0faf9b1
fix construction log message
jsiirola 592d2fa
Support starting_index for LogicalConstraintList
jsiirola 3247246
Make as_boolean behave similar to as_numeric
jsiirola 583593c
Improve LogicalConstraint test coverage
jsiirola fd98977
NFC: apply black
jsiirola eab8828
NFC: fix typo
jsiirola 847dc5a
Resolve test failures due to message change
jsiirola 9151e93
Relax LogicalConstraint expression validation.
jsiirola 5a821ae
Merge branch 'main' into feas-infeas
jsiirola 3d31076
Merge branch 'main' into feas-infeas
jsiirola 3e188e8
Fix bad merge
jsiirola d3ff6d4
Merge branch 'main' into feas-infeas
jsiirola 3084cf8
Remove references to LogicalStatement
jsiirola 1c99111
NFC: fix typos
jsiirola e2927ed
Merge branch 'main' into feas-infeas
jsiirola 506888b
Update Constraint.Feasible/Infeasible from type to singleton
jsiirola f7cc5dc
Make BooleanConstants singletons
jsiirola 329ee05
Move LogicalConstraint.Feasible/Infeasible from type to BooleanConstant
jsiirola a995d74
Relax (slightly) the simplification in Or/And.add()
jsiirola 73054ec
Update test baseline (new string output)
jsiirola 0e21fea
Update tests to reflect change in Feasible/Infeasible
jsiirola b8d1de7
Calling methods on a class can raise a TypeError; catch it
jsiirola 1e6e15b
Update constraint processing to track change in Constraint.(In)Feasible
jsiirola c750576
Merge branch 'main' into feas-infeas
mrmundt a75e382
Merge pull request #13 from jsiirola/singleton-feas-infeas
jsiirola File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.