I asked this question and it seems no one wants to help me: I am just using Gurobi 9.0 which solves non convex problems as well. I get this error:
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Gurobi Optimizer version 9.0.0 build v9.0.0rc2 (win64)
Optimize a model with 599 rows, 875 columns and 1929 nonzeros
Model fingerprint: 0x3713a22a
Model has 552 quadratic objective terms
Model has 141 quadratic constraints
Coefficient statistics:
Matrix range [5e-03, 3e+02]
QMatrix range [1e-03, 1e+00]
QLMatrix range [1e+00, 8e+03]
Objective range [5e+03, 5e+03]
QObjective range [2e+00, 2e+00]
Bounds range [0e+00, 0e+00]
RHS range [7e-15, 2e+04]
Presolve removed 84 rows and 76 columns
Gurobi.GurobiError(10020, "Q matrix is not positive semi-definite (PSD)")
Stacktrace:
[1] optimize at C:\Users\Utente\.julia\packages\Gurobi\CI8ht\src\grb_solve.jl:7 [inlined]
[2] optimize!(::Gurobi.Optimizer) at C:\Users\Utente\.julia\packages\Gurobi\CI8ht\src\MOI_wrapper.jl:1803
[3] optimize!(::MathOptInterface.Bridges.LazyBridgeOptimizer{Gurobi.Optimizer}) at C:\Users\Utente\.julia\packages\MathOptInterface\DmQBj\src\Bridges\bridge_optimizer.jl:239
[4] optimize!(::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer,MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}) at C:\Users\Utente\.julia\packages\MathOptInterface\DmQBj\src\Utilities\cachingoptimizer.jl:189
[5] #optimize!#78(::Bool, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(optimize!), ::Model, ::Nothing) at C:\Users\Utente\.julia\packages\JuMP\MsUSY\src\optimizer_interface.jl:141
[6] optimize! at C:\Users\Utente\.julia\packages\JuMP\MsUSY\src\optimizer_interface.jl:111 [inlined] (repeats 2 times)
[7] general_equi_NLP(::Int64, ::Int64, ::Int64, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,1}, ::Int64, ::Array{Float64,1}, ::Float64, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}, ::Int64, ::Float64, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,1}, ::Array{Float64,1}, ::Array{Float64,1}) at .\In[8]:121
[8] top-level scope at In[10]:1```
I apprciate if any one can help me in spoting this problem. Moreover, what does it mean in this context to say:
Gurobi.GurobiError(10020, “Q matrix is not positive semi-definite (PSD)”)