-
Notifications
You must be signed in to change notification settings - Fork 255
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
get counted solutions #248
Comments
Counting solutions has been implemented in SCIP as an afterthought and is more proof-of-concept than API functionality. We should change that... |
Thanks @mattmilten for the clarification! Please help me to understand your ellipsis. Do you suggest to change SCIP before someone changes PySCIPOpt? Is any effort to mimic the current behaviour worthy? Thanks! |
Currently, there are no concrete plans to implement proper access to the counted solutions. So (re)implementing this in PySCIPOpt would be the way to go if you need this rather sooner than later. |
@ramabile Did you end up implementing this at your end? |
closed due to inactivity |
Has there been any update on how to get the solutions? I am able to get the sparse solutions, but converting them into the new space is difficult... It seems like access to the hashmap is difficult. |
I am not aware of any progress in this regard. If you want to share your prototype code via a pull request, we might be able to complete this. I am reopening this issue again. |
Great thanks. I created a pull request under name Multiple sol #470: I'm very new to this so I apologize if I havent done a whole lot. |
After some clean-up, the commits will be merged into a feature branch and we can work together on finalizing the functionality. |
Is there any news with this PR? Am I doing something wrong or are there still compilation issues? |
Hi, that branch is still a WIP and you shouldn't install from there, feel free to checkout that branch though |
Hi all, |
Hello, @ramabile! I think the issue is that the function I've now changed the @IgnaceBleukx, I think the problems related to this issue are now fixed. |
Dear SCIPers,
this question has the purpose to check whether the function is already implemented somewhere. Otherwise I think I will implement it at some point.
I want to collect the counted solutions. I use this script:
nsols
is 8 (right), butsols
is empty (it should be an 8-long list).This is expected since counted solutions are not obtained with
getSols
.So: how to get them? I did not find anything appropriate and already implemented.
1)Looking at this: https://scip.zib.de/doc/html/COUNTER.php
it seems there are several missing interfaces. Do you confirm?
One step further is to implement
SCIPgetCountedSparseSolutions
which may not be enough.2)Documentation suggests: https://scip.zib.de/doc/html/group__CONSHDLRS.php#ga1c3b0e8f05febeac36ad6f77ce45bf66
which writes the counted solutions. Arguably, a more Pythonic way is to store the counted solutions in a list instead of writing them (and then reading them again). Is there anything similar?
3)[SCIP side from a Python user] What is the design choice behind a dialog for a writing interface without a writing interface? If there were a writing interface, is there any design choice to avoid something like
SCIPgetCountedOriginalSolutions
which would be so much appreciated?Thanks!
The text was updated successfully, but these errors were encountered: