-
Notifications
You must be signed in to change notification settings - Fork 271
Add getVarPseudocostScore and getVarPseudocost #1041
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
Thank you @sirenard ! Would you mind creating a small test for these methods, please? |
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.
Pull Request Overview
This PR adds functionality to query variable pseudo costs in the SCIP solver by introducing two new methods: getVarPseudocostScore
and getVarPseudocost
. These methods allow users to retrieve pseudo cost information for variables, which is useful for branching decisions and variable selection heuristics.
- Adds
getVarPseudocostScore()
method to get pseudo cost score for a given LP solution value - Adds
getVarPseudocost()
method to get pseudo cost value for a specified branching direction - Includes comprehensive test coverage for both new methods
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
src/pyscipopt/scip.pxd | Declares the C function SCIPgetVarPseudocostScore for Cython bindings |
src/pyscipopt/scip.pxi | Implements both Python wrapper methods with documentation |
tests/test_model.py | Adds test functions covering the new pseudo cost methods and imports required constant |
CHANGELOG.md | Documents the addition of the new methods |
Thank you, @sirenard! |
No description provided.