Error using Gurobi solver

I have an academic license for Gurobi solver. When I use the command cvx_solver Gurobi_3 to call the solver, I get the following output:

Calling Gurobi_3 9.02: 1673045 variables, 737902 equality constraints

Academic license - for non-commercial use only
Warning: Unknown parameter: ‘isvname’

In cvx_gurobi
In cvx_run_solver (line 50)
In cvx_gurobi
In cvxprob/solve (line 429)
In cvx_end (line 88)
Warning: Unknown parameter: ‘appname’

In cvx_gurobi
In cvx_run_solver (line 50)
In cvx_gurobi
In cvxprob/solve (line 429)
In cvx_end (line 88)
Warning: Unknown parameter: ‘isv_key’

In cvx_gurobi
In cvx_run_solver (line 50)
In cvx_gurobi
In cvxprob/solve (line 429)
In cvx_end (line 88)
Gurobi Optimizer version 9.0.2 build v9.0.2rc0 (win64)
Optimize a model with 737902 rows, 1673045 columns and 2608182 nonzeros
Model fingerprint: 0xf26abd26
Coefficient statistics:
Matrix range [1e+00, 1e+00]
Objective range [0e+00, 0e+00]
Bounds range [0e+00, 0e+00]
RHS range [0e+00, 0e+00]

Concurrent LP optimizer: primal simplex, dual simplex, and barrier
Showing barrier log only…

Presolve removed 737902 rows and 1673045 columns
Presolve time: 1.07s
Presolve: All rows and columns removed
Iteration Objective Primal Inf. Dual Inf. Time
0 0.0000000e+00 0.000000e+00 0.000000e+00 2s

Solved with dual simplex
Solved in 0 iterations and 1.57 seconds
Optimal objective 0.000000000e+00

Status: Solved
Optimal value (cvx_optval): +0

Elapsed time is 17.553566 seconds.

Also, when I enter cvx_setup, I get the following:


Setting CVX paths…done.
Saving updated path…done.
Searching for solvers…Warning: Unknown parameter: ‘isvname’

In cvx_gurobi
In cvx_gurobi
In cvx_setup (line 83)
Warning: Unknown parameter: ‘appname’

In cvx_gurobi
In cvx_gurobi
In cvx_setup (line 83)
Warning: Unknown parameter: ‘isv_key’

In cvx_gurobi
In cvx_gurobi
In cvx_setup (line 83)
Warning: Unknown parameter: ‘isvname’

In cvx_gurobi
In cvx_gurobi
In cvx_setup (line 83)
Warning: Unknown parameter: ‘appname’

In cvx_gurobi
In cvx_gurobi
In cvx_setup (line 83)
Warning: Unknown parameter: ‘isv_key’

In cvx_gurobi
In cvx_gurobi
In cvx_setup (line 83)
5 shims found.
6 solvers initialized (* = default):
Gurobi 7.52 {cvx}\gurobi\w64
Gurobi_2 9.02 C:\gurobi902\win64\matlab
Gurobi_3 9.02 C:\gurobi902\win64\matlab
Mosek 8.0.0.60 {cvx}\mosek\w64

  • SDPT3 4.0 {cvx}\sdpt3
    SeDuMi 1.34 {cvx}\sedumi
    1 solver skipped:
    GLPK
    Could not find a GLPK installation.
    Saving updated preferences…done.
    Testing with a simple model…done!

I am unable to locate the problem. Is this an installation issue?

Gurobi claims to have solved your problem in presolve, with optimal objective value = 0. Is that a correct solution? have you tried with another solver?

No…its not the correct solution. You see, there is just one iteration that has been done. With other solvers (Mosek), it gives the correct solution.

Are you using CVX 2.2? if not, try that.

Otherwise, note that there have apparently been bugs in the CVX/Gurobi interface. I suggest submitting a bug report (which goes to the developer, not me), but would not hold out much hope that it will be resolved.