Closed JulieSliwak closed 5 years ago
I cannot reproduce the error on my system—perhaps something related to versions? Which OS/Python distribution are you using? Which version of MOSEK are you using?
I'm using Python 3.6.8 with Windows 10 and MOSEK Version 8.1.0.72.
Can you check if you have CVXOPT v1.2.2 (and if not, try upgrading)?
I just checked out, I have CVXOPT v1.2.2.
We have had to jump through quite a few hoops to add Windows support to CVXOPT because Microsoft's C compiler isn't fully C99 compliant. I am thinking that this could be a Windows-specific bug in CVXOPT. I'll try to investigate this.
Just to be sure, this issue arises when you run examples/example1.py
?
I did not install your package so I am running opfsdr.py with the lines in example1.py at the end of the file. Plus, I had some issues with CVXOPT so I need to import numpy before importing CVXOPT (I have added this at the beginning of opfsdr.py). Is it supposed to work like this?
Thanks for your help!
CVXOPT is not supposed to depend on Numpy being loaded first; this is a CVXOPT/Windows-related issue that is specific to the official Python distribution (ref: cvxopt/cvxopt#127). This should not be an issue if you use Anaconda's Python distribution.
I'm going to try with Anaconda's Python distribution, I'll let you know if I have the same mistake.
OK, I can reproduce the issue on Windows with Anaconda's Python distribution—I will look into it.
Thank you very much.
It appears to work if you disable conversion (options = {'conversion': False, 'verbose':1}
), so it is most likely a Windows-specific bug in Chompack.
Indeed, thanks for your help.
I fixed a bug in the Windows version of CVXOPT—it should work if you install CVXOPT v1.2.3. Thanks for reporting this.
xref: cvxopt/cvxopt#138
Thanks, I can use the option conversion now.
Hello,
I'm trying to use your code but I get an infeasible solution for the example you give (case300) :
Do you have any idea of what can be wrong?
Thanks in advance,
Julie