-
Notifications
You must be signed in to change notification settings - Fork 3
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
InitialSolution #31
InitialSolution #31
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #31 +/- ##
==========================================
- Coverage 97.59% 95.62% -1.97%
==========================================
Files 9 10 +1
Lines 166 183 +17
Branches 39 48 +9
==========================================
+ Hits 162 175 +13
Misses 3 3
- Partials 1 5 +4
|
include/scippp/initial_solution.hpp
Outdated
class InitialSolution { | ||
friend class Model; | ||
//! Variable assignment in the initial solution. | ||
std::map<SCIP_Var*, double> m_values {}; |
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.
#28 plans to make Var.var
private in the future. I suppose Model
would be a friend class, but InitialSolutions shouldn't have a reference to SCIP_Var
. It should be easy to change this to Var*
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.
Good idea, changed to const Var*
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.
Should this be in it's own separate PR?
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.
It could be. Seems to be more overhead to fix the pipeline somewhere else, merge, rebase .... instead of doing it on the fly here :-)
fixes #30