Repository navigation
fix: remove unfilled placeholder values from SCIP event data - #115
Merged
Merged
Conversation
…ency # Conflicts: # tests/test_solvers.py
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #115 +/- ##
==========================================
- Coverage 73.27% 73.05% -0.22%
==========================================
Files 12 12
Lines 1115 1106 -9
==========================================
- Hits 817 808 -9
Misses 298 298 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The SCIP event handler had a bunch of keys whose values were literally
...(placeholders that were never filled in), soon_eventcallbacks were gettingEllipsisfor things likeupperbound,cutoffbound,nnzs, etc. This just drops them from the payload and from theSCIPPresolve/SCIPBestSolTypedDicts.I looked at actually filling them in instead, but pyscipopt can't provide most of them:
getNActiveConss,getNEnabledConss,getNFixedVars,getNNZsandgetTransGaparen't wrapped at all (as of 6.3.0).getCutoffbound/getLowerboundexist since 5.7, andgetUpperbound/getAvgDualbound/getAvgLowerboundshowed up sometime after 6.1... so those could come back in a follow-up, along with a pyscipopt minimum version.Also fixes the
_SCIPDatatype hint, which saiddeterministictimewhile the runtime key has always beendeterministic_time.