-
Notifications
You must be signed in to change notification settings - Fork 18
Added redcost method to Variable.rs
#269
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
Co-authored-by: Mohammed Ghannam <mohammad.m.ghannam@gmail.com>
|
I made a mistake in 'redcost' I believe. I'll fix it in a bit |
Now this method is called in the `redcost`-method of the `Variable`-struct.
Now, we do not check if the variable is in the LP anymore. Instead, we simply check if the variable has a column associated with it. This is because newly generated columns will not be in the LP, however they are columns and can have reduced cost associated with them.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #269 +/- ##
==========================================
+ Coverage 76.49% 76.81% +0.32%
==========================================
Files 29 29
Lines 3871 3915 +44
==========================================
+ Hits 2961 3007 +46
+ Misses 910 908 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I saw the Let me know if you think it is not okay to merge! 😄 |
get_redcost method to Variable.rsredcost method to Variable.rs
Hi!
I am not certain about this one;
If C returns
SCIP_INVALID, I think this method should returnNoneinstead.SCIPgetVarRedcostcan returnSCIP_INVALIDas per the docs. I believe that I once observed this to be equal to 1e100 in Rust (instead of the declared 1e99). I could not findSCIP_INVALIDinscip-sys, is this something I should add there first?So, for the moment, maybe do not merge this. Just looking for a second opinion