Gurobi is not working
AnsweredWhen I run my code, it generates the following error:
Status: Error
Optimal value (cvx_optval): NaN
Error using cvx_end (line 267)
result = gurobi(model, params)
While setting up cvx using the cvx_setup.m file on Matlab, Gurobi 9.00 was installed. But Gurobi_2 and gurobi_3 solvers were skipped generating the following message:
Gurobi_2 unknown /Library/gurobi1100/macos_universal2/matlab
result = gurobi(model, params)
Gurobi_3 unknown /Library/gurobi1100/macos_universal2/matlab
result = gurobi(model, params)
How can I make it work correctly?
0
-
Hi Sifat-E-Tanzim,
I also note the same question was asked by another user over at the CVX forum:
https://ask.cvxr.com/t/using-cvx-with-gurobi-version-11-0-0/12292I strongly suspect CVX is not compatible with Gurobi 11, and based off other posts I would not be surprised if the latest version of Gurobi that is compatible is 9.1.2.
If this is where the CVX code is kept, then it has not been updated in 5 years. However it looks like cvxpy is still regularly maintained so you could consider switching to Python (a move which will be beneficial for many reasons) and I expect later Gurobi versions will work.
- Riley
0
Please sign in to leave a comment.
Comments
1 comment