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
[solved] Q not PSD error with Gurobi 0.9? #285
Comments
You need to set the model = Model(with_optimizer(Gurobi.Optimizer, NonConvex = 2)) Given the number of complaints about this, it's a little annoying that Gurobi doesn't highlight this more in their documentation. Edit: I've opened a support ticket: https://support.gurobi.com/hc/en-us/community/posts/360056747952-Suggest-users-set-NonConvex-2-for-non-PSD-quadratics- |
I've changed the title because there will undoubtedly be more people that come looking for this question. |
You need to ensure you have the latest tagged version of Gurobi.jl (0.7.5). Run import Pkg
Pkg.update()
Pkg.status() |
received this [2e9cd046] Gurobi v0.7.4 |
You likely have another package holding you back. What's the output of In general, you should use Julia environments to avoid this: https://julialang.github.io/Pkg.jl/stable/environments/ |
julia> Pkg.status() |
Thank you, I will use a separate project further |
You can also try In general, it isn't recommended to have this many packages in your global environment for precisely this reason. For every project you do, make a new environment with the minimal subset of packages you need. For example, Alpine and AmplNLWriter are installed at versions which don't support JuMP 0.20. It gets pretty confusing if lots of packages are all fighting for version requirements. |
Thank you very much for your help. I just solved it |
In good news, the next version of Gurobi will have a more informative error message. |
Closing. Fixed by new error message in Gurobi 9.0.2. |
The package Gurobi.jl seems to be not updated in accordance with the current release of the software Gurobi 9.0. As it has been announced on the official website Gurobi 9.0 is already capable of solving non-convex quadratic problems, however, when trying to use the latest version of the software to solve JuMP MIQCQP I receive the following message
Could you please have a look at this issue?
Please find attached the .pdf with the formulation of the model I used and .jl with the JuMP formulation of it in the enclosed archive Non-convex MIQCQP example.zip
The text was updated successfully, but these errors were encountered: