Warnings during CVX setup

Hello

I am new to cvx and matlab. When I setup cvx in matlab using “cvx_setup” command, it sucessfully installs but I get the following warnings:

"

Setting CVX paths…already set!
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 8.11 C:\gurobi811\win64\matlab

  • Gurobi_3 8.11 C:\gurobi811\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…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)
In cvx_setup (line 213)
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)
In cvx_setup (line 213)
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)
In cvx_setup (line 213)
done!

"

It gave me same message when I ran the example problem from cvx website:

">> m =20;
n =10;
p = 4;
A = random(m,n);
A = randn(m,n);
b = randn(m,1);
C=randn(p,n);
d = randn(p,1);
e = rand;
cvx_begin
variable x(n)
minimize( norm(Ax - b,2))
subject to
C
x==d
norm(x,Inf)<=e
cvx_end
Error using random (line 68)
The NAME argument must be a distribution name.

Calling Gurobi_3 8.11: 52 variables, 34 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)
Optimize a model with 34 rows, 52 columns and 290 nonzeros
Coefficient statistics:
Matrix range [1e-03, 3e+00]
Objective range [0e+00, 0e+00]
Bounds range [0e+00, 0e+00]
RHS range [0e+00, 0e+00]
Presolve removed 34 rows and 52 columns
Presolve time: 0.06s
Presolve: All rows and columns removed
Iteration Objective Primal Inf. Dual Inf. Time
0 0.0000000e+00 0.000000e+00 0.000000e+00 0s

Solved in 0 iterations and 0.11 seconds
Optimal objective 0.000000000e+00

Status: Solved
Optimal value (cvx_optval): +0
"

What did I do wrong? What should I do to avoid this warning everytime?

Thank you in advance!

I don’t think you did anything wrong. it may be that those warnings are harmless, but I’m not sure. There are known instances of Gurobi producing an incorrect solution under CVX, for example Gurobi got a wrong result when showing "Solved" in a simple question . At this point, and without understanding the underlying cause of the incorrect solutions and warnings, I am more inclined to trust other solvers for use under CVX.

Thanks for your input Mark! Very much appreciate it. I will play around with gurobi and cvx just to make sure everything is working way it should. A supporting community is a blessing! Keep up the good work :slight_smile: