-
Notifications
You must be signed in to change notification settings - Fork 526
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
Add branching priorities to CPLEXSHELL #1300
Merged
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
164513e
:hammer: Add branching priorities to CPLEXSHELL
ruaridhw 81f0a6e
:rotating_light: Add tests of solving with priorities
ruaridhw 5e44956
:hammer: Use `Suffix`es instead of `_GeneralVarData`
ruaridhw c4b9c53
:hammer: Allow indexed variables to have separate directions
ruaridhw b468b2b
:bug: Handle both non-indexed vars in Suffix
ruaridhw 495776d
:rotating_light: Update tests to work when CPLEX is unavailable
ruaridhw dbccdf2
:bug: Fix test
ruaridhw ba38d43
:bug: Fix imports
ruaridhw e4f43f0
:hammer: Make `BranchDirection` global and simplify `_write_prioritie…
ruaridhw ae59e09
:hammer: Remove unnecessary `CPLEXBranchDirection`
ruaridhw 6576269
:hammer: Use `TestCase` assert methods
ruaridhw 3eac4cc
:rotating_light: Register factories using top-level import
ruaridhw 4152424
:rotating_light: Hardcode string results
ruaridhw 37d1c77
:books: Formatting of test results
ruaridhw e6d9fcc
:books: Test docs
ruaridhw 1a0f41b
:bug: Fix branching priorities for Kernel
ruaridhw 67bfca0
:hammer: Add `iter_component()`
ruaridhw e663b14
:hammer: Use `iter_component()`
ruaridhw 456cb86
:bug: Fix Py2 import error
ruaridhw 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 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 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
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.
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 think the easiest general solution is:
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.
Thanks @jsiirola! I've added this logic as a general-purpose helper in
pyomo.util.components
however let me know if you'd rather this logic is kept private to this method or this isn't the best place for it. (To be honest, I'm surprised this hasn't come up before!)