Skip to content
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

Strong branching score of -1e+20 for candidate variables #348

Open
SelinBayramoglu opened this issue Sep 21, 2022 · 1 comment
Open

Strong branching score of -1e+20 for candidate variables #348

SelinBayramoglu opened this issue Sep 21, 2022 · 1 comment
Labels
type/bug 🐛 Something isn't working

Comments

@SelinBayramoglu
Copy link

Describe the bug

Hi,

I use the the observation function ecole.observation.StrongBranchingScores to extract strong branching scores of candidate variables in an application. I collect scores for only variables with a fractional solution, i.e. no pseudo candidates. I see that some candidates get a score of -1e+20. According to the SCIP source code branch_vanillafullstrong.c, all candidate scores are initialized at this value and later obtain a valid score after strong branching. By definition, a branching score should be nonnegative, so I am confused as to why this happens. If this is the result of an LP error during strong branching computation, could you suggest a method to debug this?

Thank you.

Setting

  • OS: Linux
  • Python version: 3.9.12
  • Ecole version: 0.7.3
  • SCIP version: 7.0.3

To Reproduce

Expected behavior

I would expect all strong branching scores to be >= 0 and I would expect a message if no scores could be extracted for a variable due to some error.

Additional context

@SelinBayramoglu SelinBayramoglu added the type/bug 🐛 Something isn't working label Sep 21, 2022
@Yige-Lei
Copy link

Yige-Lei commented Jun 4, 2024

Have you solved this problem? I've encountered similar problem. Some of my strong branching scores of candidate variables are "nan". I'm confused too. TT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants