Repository navigation
SCIP 11: Support for exact solving - #1264
Joao-Dionisio wants to merge 53 commits into
Conversation
…t getters, exact LP status, variable status and node lower bound
…ters in the changelog
…re natively in ExactModel
|
Noticed three issues:
The subclassing is good, but should rather be explicitly whitelisted for "safe" methods instead of automatically inherited to prevent future leaks, and remaining real methods should be clearly documented. |
|
Thank you @DominikKamp !
On the subclassing, I'm not sure how the whitelisting would work. We can explicitly do class ExactModel(Model):
unsafe_method = NoneWe can also have class BaseModel():
def common_methods() ...
class Model(BaseModel):
def unsafe_methods(): ....
class ExactModel(BaseModel):
def exact_methods():...This last option may be cleaner, but it's also a TON of risky changes. But fortune favors the brave, so I don't know if we should try 🤷 |
|
The |
…mn/Row/NLRow to model.pxi
… addMatrixVar to Model and lint for dtype=float and Model returns
76a9f6d to
3920a7e
Compare
Co-authored-by: João Dionísio <57299939+Joao-Dionisio@users.noreply.github.com>
|
This should be merged after #1292 . Then, the diff should become much nicer. |
…ontract stubs to ExactModel
# Conflicts: # src/pyscipopt/scip.pxi # src/pyscipopt/scip.pyi
… members, add changelog entries
…te/read to BaseModel, fix deprecation stacklevel and version
…butes in ExactModel's AttributeError
… ExactModel in create/from_ptr
So that the eventual PR for SCIP 11 doesn't get too huge. Adding a lot of support for using exact SCIP.
@DominikKamp , can you please take a look at this? Does it work as you would expect?
Most of the LOC changes come from the docstrings of the added methods.
EDIT: Now have an ExactModel class that contains all the exact functionality. That way, we can separate people's concerns.