-
Notifications
You must be signed in to change notification settings - Fork 553
Add reporting of SCIP node count to solver results #3691
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3691 +/- ##
==========================================
+ Coverage 89.19% 89.21% +0.01%
==========================================
Files 892 892
Lines 103015 103215 +200
==========================================
+ Hits 91888 92081 +193
- Misses 11127 11134 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
051bf66
to
8961c0e
Compare
squashed commits to have a better message and less clutter |
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 have one naming suggestion, but otherwise this looks good.
@@ -255,6 +255,7 @@ def _postsolve(self): | |||
|
|||
results.solver.time = log_dict['solving_time'] | |||
results.solver.gap = log_dict['gap'] | |||
results.solver.nodes = log_dict['solving_nodes'] |
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 results.solver.node_count
might be a clearer name, but I don't have super strong feelings about it.
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 for the suggestion! I've made this change.
Fixes
N/A
Summary/Motivation:
When running
pyomo solve
with the SCIP solver, the serialized results files don't show the number of nodes explored. The SCIPAMPL handler parses the number of nodes in the SCIP solver log and returns it fromread_scip_log
, but not in the solver results returned from_postsolve
. Including it would make it easier to assess changes in tree size when benchmarking.Changes proposed in this PR:
Legal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution: