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
SCIP reports OPTIMAL_INACCURATE solution, eventhough no solution has been found #2050
Comments
A minor update: If I run the program with MOSEK instead of SCIP, I don't get the error. But because MOSEK is proprietary and SCIP is not, I really would like to stick to SCIP. |
@Old-Shatterhand I agree, for |
Hey @Old-Shatterhand, I was wondering if you help me reproduce the bug? Also I was wondering how the solver could report an s.OPTIMAL_INACCURATE status if model.getNCountedSols() is = 0? |
Hey @Transurgeon, I didn't encounter that bug. Have you tried setting up a fresh, new, clean conda-environment and execute Regarding your second comment: I don't understand what you mean. I hope I could help you, if not, please let me know. Best, Roman |
Hello Roman, |
Hi @Transurgeon , Could you solve your installation issue? Then, you can execute my example file and see it yourself. Best, Roman |
Hey @Old-Shatterhand, thanks for your fast reply. Now I understand what is the issue, I didn't know that the status was being set on line 46, I thought it was line 350 (looking through the snippet on first glance). I tried your method of using a new conda environment, but I am still running into some issues while trying to install pysciopt.. I'll get back to you if I am able to download SCIP. |
Hey @Transurgeon , I don't know how to properly fix this issue. Your suggestion is definitely a hot-fix. Either the statement in line 348 is the bug or a symptom of a bug. Best, Roman |
FYI we are going to fix the bug you have pointed out in the SCIP interface. Hopefully this week. |
Fixed in master. |
Hi,
Describe the bug
I'm trying to solve some DQCPs with SCIP but I encounter some "unintuitive" behavior. SCIP reports having found an optimal_inaccurate solution, even though nothing has been found.
To Reproduce
This file contains the python code to produce the error. I had to rename it to
.txt
as.py
is prohibited by github. To execute it, rename it to.py
and run it in a python environment withcvxpy
andnumpy
installed.Expected behavior
In the following, I'm talking about the
_solve
method inscip_conif.py
(link) and especially about lines 347 to 350.The program is terminated due to reaching the maximal time, i.e.,
model.getStatus()
is'timelimit'
. At the same timemodel.getNSols()
andmodel.getNCountedSols()
are both 0, i.e. no solution has been found at all. I expect the cvxpy to report accordingly and setsolution["status"]
to be some constant indicating that no solution has been found. I suggest settingsolution["status"] = s.SOLVER_ERROR
as the solver hasn't found a solution and we cannot know if the program is even feasible.Output
This file contains the program output produced by the code linked above.
Version
Additional context
Nothing.
Thank you in advance for your help.
Best, Roman
The text was updated successfully, but these errors were encountered: