Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sirenard
Copy link
Contributor

No description provided.

@Joao-Dionisio
Copy link
Member

Thank you @sirenard ! Would you mind creating a small test for these methods, please?

@Joao-Dionisio Joao-Dionisio requested a review from Copilot July 29, 2025 10:03
Copy link
Contributor

@Copilot Copilot AI left a 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

@Joao-Dionisio Joao-Dionisio merged commit f0d47a4 into scipopt:master Jul 29, 2025
1 check passed
@Joao-Dionisio
Copy link
Member

Thank you, @sirenard!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants