MOSEK returns NaN although the optimization problem is solved

Dear ALL,

I have tried to solve the following convex optimization problem with binary decision variables:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc;
N = 3;
L = 5;
beta = 0.5;
alpha = 4;
phi = ones(L, 1);
mu = ones(N, 1);
M = ones(N, 1);
eta = L/sum(M);
dist = zeros(L, L);
position = zeros(L,1);
for i = 1:L
position(i, 1) = 1000rand();
position(i, 2) = 1000
rand();
end
for i = 1:L
x1 = position(i, 1);
y1 = position(i, 2);
for j = 1:L
x2 = position(j, 1);
y2 = position(j, 2);
dist(i,j) = sqrt((x1-x2)^2 + (y2-y1)^2);
dist(i,j) = dist(i,j)^2;
end
end
P = zeros(N, L);
for i = 1:N
for j = 1:L
P(i,j) = min(1, mu(i)/phi(j));
end
end
cvx_begin
variable y(L,L,N) binary %%%% ylki = xil*xik auxiliary variable for linearlizing product of two variable x
variable x(N, L) binary %%% binary variable for cell assignment
for i = 1:N
F(i) = - x(i,:)*P(i,:)’ - (1/M(i))*x(i,:)*phi;
for l = 1:L
F(i) = F(i) + y(l,:,i)*dist(i,:)’; %%
end
end
%%% the primary objective is min max(F(i))
%%%% convert minmax to a convex problem as sum(Fi^alpha)/(alpha - 1)
fun = F(1)^alpha;
for i = 1:N
fun = fun + F(i)^alpha;
end
fun = fun/(alpha - 1);

cvx_solver MOSEK
minimize(fun);
subject to
for l = 1:L
sum(x(:, l)) == 1
end
for i = 1:N
for l = 1:L
for k = 1:L
y(l,k,i) <= x(i, l)
y(l,k,i) <= x(i, k)
y(l,k,i) >= x(i, l) + x(i, k) - 1
end
end
end
cvx_end
x
y
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The output is

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Calling Mosek 8.0.0.60: 341 variables, 98 equality constraints
For improved efficiency, Mosek is solving the dual problem.

MOSEK Version 8.0.0.60 (Build date: 2017-3-1 13:09:33)
Copyright © MOSEK ApS, Denmark. WWW: mosek.com
Platform: Windows/64-X86

Problem
Name :
Objective sense : min
Type : CONIC (conic optimization problem)
Constraints : 98
Cones : 8
Scalar variables : 341
Matrix variables : 0
Integer variables : 90

Optimizer started.
Mixed integer optimizer started.
Threads used: 2
Presolve started.
Presolve terminated. Time = 0.00
Presolved problem: 323 variables, 91 constraints, 693 non-zeros
Presolved problem: 0 general integer, 90 binary, 233 continuous
Clique table size: 0
BRANCHES RELAXS ACT_NDS DEPTH BEST_INT_OBJ BEST_RELAX_OBJ REL_GAP(%) TIME
0 1 0 0 NA -2.1609629032e-007 NA 0.1
0 1 0 0 0.0000000000e+000 -2.1609629032e-007 2.16e+005 0.1
0 1 0 0 -4.3419370574e-008 -2.1609629032e-007 397.70 0.1
Cut generation started.
0 2 0 0 -4.3419370574e-008 -2.1609629032e-007 397.70 0.2
Cut generation terminated. Time = 0.00
3 6 0 1 -6.0944914982e-007 -6.0944914982e-007 0.00e+000 0.2
An optimal solution satisfying the relative gap tolerance of 1.00e-002(%) has been located.
The relative gap is 0.00e+000(%).
An optimal solution satisfying the absolute gap tolerance of 0.00e+000 has been located.
The absolute gap is 0.00e+000.

Objective of best integer solution : -6.094491498218e-007
Best objective bound : -2.160962903238e-007
Construct solution objective : Not employed
Construct solution # roundings : 0
User objective cut value : 0
Number of cuts generated : 0
Number of branches : 3
Number of relaxations solved : 6
Number of interior point iterations: 81
Number of simplex iterations : 0
Time spend presolving the root : 0.00
Time spend in the heuristic : 0.00
Time spend in the sub optimizers : 0.00
Time spend optimizing the root : 0.02
Mixed integer optimizer terminated. Time: 0.23

Optimizer terminated. Time: 0.30

Integer solution solution summary
Problem status : PRIMAL_FEASIBLE
Solution status : INTEGER_OPTIMAL
Primal. obj: -6.0944914982e-007 nrm: 3e-001 Viol. con: 8e-009 var: 6e-008 cones: 0e+000 itg: 4e-008
Optimizer summary
Optimizer - time: 0.30
Interior-point - iterations : 0 time: 0.00
Basis identification - time: 0.00
Primal - iterations : 0 time: 0.00
Dual - iterations : 0 time: 0.00
Clean primal - iterations : 0 time: 0.00
Clean dual - iterations : 0 time: 0.00
Simplex - time: 0.00
Primal simplex - iterations : 0 time: 0.00
Dual simplex - iterations : 0 time: 0.00
Mixed integer - relaxations: 6 time: 0.23


Status: Solved
Optimal value (cvx_optval): NaN

x =

NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN

y(:,:,1) =

NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN

y(:,:,2) =

NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN

y(:,:,3) =

NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN
NaN NaN NaN NaN NaN

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

In my primary problem, the objective function F(i) includes the problem of two binary variables xilxk. So, I linearize it by adding auxiliary variable ylki = xilxik with additional constrains as
ylki <= xil
ylki = xik
ylki = xil + xik -1

However, I do not know why the program returns NaN for objective function and all binary variables x,y.
I am new with CVX. Please help me to chech this problem.

Thanks.

This appears to be a bug somewhere.

Are you running CVX 3.0beta? If so, try CVX 2.1 and see what happens. Simple SDP problem has different results with different precisions I don’t believe there have been any reports yet on this forum of successful use of MOSEK 8 under CVX 3.0beta, but there have of MOSEK 8 under CVX 2.1.

I suspect the problem is on the CVX end, not the MOSEK end. But note that the latest build of MOSEK is 8.0.0.81 (you ran 8.0.0.60). I doubt it will help, but you can try.

Have you solved this probelm? I meet the same trouble.

@clx Can you show a complete reproducible problem with all input data, and all solver and CVX output?

Sorry, Mark. I noticed your reply today. My problem is like this. I don’t why the result is “Unbounded”. The objective function is a QP problem, but the “Optimal value (cvx_optval)” is " -Inf ".

Could you please tell me where the problem is? Thank you so much!

And here is the solver Mosek.

Mosek finds the certificate in presolve so it must be something simple, like you trying to minimize -0.99x. You didn’t post a fully reproducible example with data, so it is hard to say. You can always dump the problem to a file https://docs.mosek.com/latest/faq/faq.html#cvx and debug https://docs.mosek.com/latest/cmdtools/debugging-infeas.html

By a fully reproducible example on this forum we mean a preformatted code that can be copy-pasted directly into Matlab and ran. Including all the input data. Screenshots don’t count as such. The benefit of requiring a fully reproducible example is that while you prepare one, you can often spot the problem yourself.

However, there is a quadratic term in my objective function ‘pow_pos’ and the coefficient on this term is positive which made me confused. I will check my program to find what’s the matter.

I agree, therefore it is possible that we are missing some very simple thing, and the reason we are missing it is because we do not have the 100% full picture of everything.

@clx As @Michal_Adamaszek requested, please copy and paste a complete MATLAB session into a post, using the Prefromatted text icon. “Test” the adequacy of your submission by copy and pasting your post into a new MATLAB session (make sure there is not a startup.m file which is doing something relevant to the problem), and don’t use any toolboxes (other than CVX) which are not included in the base MATLAB distribution.

Why are you using pow_cvx? DId you “inherit” code from someone else?

pow_cvx is an"internal" function of CVX, and is not documented in the CVX Users’ Guide. Perhaps you are using it correctly. Nevertheless, I suggest you rewrite the code to directly use pow_pos without pow_cvx, and see whether that makes any difference, because, perhaps you are not specifying the expression you think you are.

Thank you. I will have a try.

Hi,
I have the same problem with my code below.

cvx_solver mosek
cvx_begin quiet
variable t_e nonnegative
variable t_u nonnegative
variable f_u(1, 2K) nonnegative
maximize(sum((f_u .
T_max(m)) ./ C) + t_usum(RNOMAI))
subject to
P_in * t_u + a * pow_p(f_u, 3) * T_max(m) <= eta_max(q) * P_max(l) * H_e * t_e;
t_u == T_max(m) - t_e;
(P_in - P_max(l) .
ones(1, 2K)) <= 0;
(f_u - f_max .
ones(1, 2*K)) <= 0;
cvx_end
In this case, the output is Nan. Here is the CVX report.

Calling Mosek 10.1.25: 74 variables, 25 equality constraints
For improved efficiency, Mosek is solving the dual problem.

MOSEK Version 10.1.25 (Build date: 2024-2-14 13:03:04)
Copyright (c) MOSEK ApS, Denmark WWW: mosek.com
Platform: MACOSX/aarch64

MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (10) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (11) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (12) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (13) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (14) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (15) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (16) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (17) of matrix ‘A’.
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (2).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (3).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (4).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (5).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (6).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (7).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (8).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (9).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (28).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 2e+09 has been specified in c for variable ‘’ (30).
Warning number 57 is disabled.
Problem
Name :
Objective sense : minimize
Type : CONIC (conic optimization problem)
Constraints : 25
Affine conic cons. : 0
Disjunctive cons. : 0
Cones : 16
Scalar variables : 74
Matrix variables : 0
Integer variables : 0

Optimizer started.
Presolve started.
Eliminator started.
Freed constraints in eliminator : 0
Eliminator terminated.
Linear dependency checker started.
Linear dependency checker terminated.
Eliminator started.
Freed constraints in eliminator : 0
Eliminator terminated.
Eliminator - tries : 2 time : 0.00
Lin. dep. - tries : 1 time : 0.00
Lin. dep. - primal attempts : 1 successes : 1
Lin. dep. - dual attempts : 0 successes : 0
Lin. dep. - primal deps. : 0 dual deps. : 0
Presolve terminated. Time: 0.00
Optimizer - threads : 8
Optimizer - solved problem : the primal
Optimizer - Constraints : 16
Optimizer - Cones : 16
Optimizer - Scalar variables : 64 conic : 48
Optimizer - Semi-definite variables: 0 scalarized : 0
Factor - setup time : 0.00
Factor - dense det. time : 0.00 GP order time : 0.00
Factor - nonzeros before factor : 24 after factor : 24
Factor - dense dim. : 0 flops : 2.56e+02
ITE PFEAS DFEAS GFEAS PRSTATUS POBJ DOBJ MU TIME
0 1.0e+00 4.0e+09 8.0e+09 0.00e+00 8.001020676e+09 1.020667671e+06 1.0e+00 0.00
1 2.1e-01 8.3e+08 3.7e+09 -1.00e+00 8.001307539e+09 1.020667669e+06 2.1e-01 0.00
2 1.8e-02 7.1e+07 1.1e+09 -1.00e+00 8.001467290e+09 1.020667648e+06 1.8e-02 0.00
3 5.7e-03 2.3e+07 6.1e+08 -1.00e+00 8.001462718e+09 1.020667601e+06 5.7e-03 0.00
4 1.0e-03 4.0e+06 2.5e+08 -1.00e+00 8.001462832e+09 1.020667274e+06 1.0e-03 0.00
5 3.4e-04 1.3e+06 1.5e+08 -1.00e+00 8.001457200e+09 1.020666485e+06 3.4e-04 0.00
6 8.7e-05 3.5e+05 7.5e+07 -1.00e+00 8.001431530e+09 1.020663066e+06 8.7e-05 0.00
7 1.6e-05 6.4e+04 3.2e+07 -1.00e+00 8.001279298e+09 1.020642787e+06 1.6e-05 0.00
8 2.2e-06 8.9e+03 1.2e+07 -1.00e+00 8.000123123e+09 1.020488602e+06 2.2e-06 0.00
9 7.1e-07 2.8e+03 6.7e+06 -1.00e+00 7.997249134e+09 1.020105286e+06 7.1e-07 0.00
10 1.2e-07 4.7e+02 2.7e+06 -9.99e-01 7.975898263e+09 1.017252070e+06 1.2e-07 0.00
11 2.5e-08 9.9e+01 1.2e+06 -9.96e-01 7.880203170e+09 1.004386998e+06 2.5e-08 0.01
12 5.7e-09 2.3e+01 5.8e+05 -9.79e-01 7.487429510e+09 9.506007579e+05 5.7e-09 0.01
13 7.4e-10 2.9e+00 1.7e+05 -9.03e-01 4.712850133e+09 5.288711303e+05 7.4e-10 0.01
14 1.7e-10 1.3e-01 8.8e+03 -3.84e-01 -5.045616301e+08 -4.388612496e+05 8.2e-11 0.01
Optimizer terminated. Time: 0.01

Interior-point solution summary
Problem status : DUAL_INFEASIBLE
Solution status : DUAL_INFEASIBLE_CER
Primal. obj: -1.8136498507e-01 nrm: 5e-01 Viol. con: 7e-10 var: 7e-11 cones: 2e-11
Optimizer summary
Optimizer - time: 0.01
Interior-point - iterations : 14 time: 0.01
Basis identification - time: 0.00
Primal - iterations : 0 time: 0.00
Dual - iterations : 0 time: 0.00
Clean primal - iterations : 0 time: 0.00
Clean dual - iterations : 0 time: 0.00
Simplex - time: 0.00
Primal simplex - iterations : 0 time: 0.00
Dual simplex - iterations : 0 time: 0.00
Mixed integer - relaxations: 0 time: 0.00


Status: Infeasible
Optimal value (cvx_optval): -Inf

I also used other solvers and they gave me negative results!

The problem was assessed to be infeasible. Therefore, the variables were populated with NaN.

Mosek warned about near zero and very large magnitude numbers, i.e., bad numerical scaling. Because of the bad scaling, results from Mosek or any other solver might be unreliable. You should choose different units, so that all non-zero input data is within a small number of orders of magnitude of 1. At least make sure there are no Mosek warnings; but you should strive to get scaling better than just not getting warnings.

Then re-run Mosek. if the result still is infeasible, follow the advice at Debugging infeasible models - YALMIP , all but section 1 of which also applies to CVX.

Sorry for being late!
I have no idea why but I didn’t see that!

I still have a problem with the below code and get the same error. Could you please tell me what I can do about that?

P_in8 = ones (1,2K); H_e = [h_eA h_eB];
H_t2 = [sort(h_uAT2,‘descend’) sort(h_uBT2,‘descend’)];
RTDMAII = zeros (1,2
K); P_innew8 = pk_maxones(1,2K); t_e = 0.2*T_max(m);

                    cvx_solver mosek
                    cvx_begin 
                        variable t_u(1, 2*K) nonnegative
                        variable f_u(1, 2*K) nonnegative
                        maximize(sum((f_u * T_max(m)) ./ C) + sum(t_u .* RTDMAII))
                        subject to 
                            P_in8 .* t_u + a * pow_p(f_u, 3) * T_max(m) <= eta_max(q) * P_max(l) * H_e * t_e;
                            for i=1:K
                                t_u(1,i) == t_u(i+K);
                            end
                            sum(t_u) <= 2*(T_max(m) - t_e);
                            (f_u - f_max .* ones(1, 2*K)) <= 0;   
                    cvx_end

Here is the error!

MOSEK Version 10.1.25 (Build date: 2024-2-14 13:03:04)
Copyright (c) MOSEK ApS, Denmark WWW: mosek.com
Platform: MACOSX/aarch64

MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (16) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (17) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (18) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (19) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (20) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (21) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (22) of matrix ‘A’.
MOSEK warning 710 (MSK_RES_WRN_ZEROS_IN_SPARSE_COL): #1 (nearly) zero elements are specified in sparse col ‘’ (23) of matrix ‘A’.
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (8).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (9).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (10).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (11).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (12).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (13).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (14).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (15).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 1e+09 has been specified in c for variable ‘’ (35).
MOSEK warning 57 (MSK_RES_WRN_LARGE_CJ): A large value of 2e+09 has been specified in c for variable ‘’ (37).
Warning number 57 is disabled.
Problem
Name :
Objective sense : minimize
Type : CONIC (conic optimization problem)
Constraints : 28
Affine conic cons. : 0
Disjunctive cons. : 0
Cones : 16
Scalar variables : 81
Matrix variables : 0
Integer variables : 0

Optimizer started.
Presolve started.
Eliminator started.
Freed constraints in eliminator : 0
Eliminator terminated.
Linear dependency checker started.
Linear dependency checker terminated.
Eliminator started.
Freed constraints in eliminator : 0
Eliminator terminated.
Eliminator - tries : 2 time : 0.00
Lin. dep. - tries : 1 time : 0.00
Lin. dep. - primal attempts : 1 successes : 1
Lin. dep. - dual attempts : 0 successes : 0
Lin. dep. - primal deps. : 0 dual deps. : 0
Presolve terminated. Time: 0.00
Optimizer - threads : 8
Optimizer - solved problem : the primal
Optimizer - Constraints : 16
Optimizer - Cones : 16
Optimizer - Scalar variables : 64 conic : 48
Optimizer - Semi-definite variables: 0 scalarized : 0
Factor - setup time : 0.00
Factor - dense det. time : 0.00 GP order time : 0.00
Factor - nonzeros before factor : 24 after factor : 24
Factor - dense dim. : 0 flops : 2.56e+02
ITE PFEAS DFEAS GFEAS PRSTATUS POBJ DOBJ MU TIME
0 1.0e+00 4.0e+09 8.0e+09 0.00e+00 8.002100728e+09 2.100720109e+06 1.0e+00 0.00
1 2.1e-01 8.3e+08 3.7e+09 -1.00e+00 8.002387591e+09 2.100720108e+06 2.1e-01 0.00
2 1.8e-02 7.1e+07 1.1e+09 -1.00e+00 8.002547343e+09 2.100720087e+06 1.8e-02 0.00
3 5.7e-03 2.3e+07 6.1e+08 -1.00e+00 8.002542770e+09 2.100720040e+06 5.7e-03 0.00
4 1.0e-03 4.0e+06 2.5e+08 -1.00e+00 8.002542884e+09 2.100719713e+06 1.0e-03 0.00
5 3.4e-04 1.3e+06 1.5e+08 -1.00e+00 8.002537252e+09 2.100718923e+06 3.4e-04 0.00
6 8.7e-05 3.5e+05 7.5e+07 -1.00e+00 8.002511583e+09 2.100715505e+06 8.7e-05 0.00
7 1.6e-05 6.4e+04 3.2e+07 -1.00e+00 8.002359350e+09 2.100695226e+06 1.6e-05 0.00
8 2.2e-06 8.9e+03 1.2e+07 -1.00e+00 8.001203175e+09 2.100541040e+06 2.2e-06 0.00
9 7.1e-07 2.8e+03 6.7e+06 -1.00e+00 7.998329186e+09 2.100157725e+06 7.1e-07 0.00
10 1.2e-07 4.7e+02 2.7e+06 -9.99e-01 7.976978316e+09 2.097304508e+06 1.2e-07 0.00
11 2.5e-08 9.9e+01 1.2e+06 -9.96e-01 7.881283223e+09 2.084439437e+06 2.5e-08 0.01
12 5.7e-09 2.3e+01 5.8e+05 -9.79e-01 7.488509562e+09 2.030653197e+06 5.7e-09 0.01
13 7.4e-10 2.9e+00 1.7e+05 -9.03e-01 4.713930185e+09 1.608923569e+06 7.4e-10 0.01
14 1.7e-10 1.3e-01 8.8e+03 -3.84e-01 -5.034815777e+08 6.411911890e+05 8.2e-11 0.01
Optimizer terminated. Time: 0.01

Interior-point solution summary
Problem status : DUAL_INFEASIBLE
Solution status : DUAL_INFEASIBLE_CER
Primal. obj: -1.8136498507e-01 nrm: 5e-01 Viol. con: 7e-10 var: 7e-11 cones: 2e-11
Optimizer summary
Optimizer - time: 0.01
Interior-point - iterations : 14 time: 0.01
Basis identification - time: 0.00
Primal - iterations : 0 time: 0.00
Dual - iterations : 0 time: 0.00
Clean primal - iterations : 0 time: 0.00
Clean dual - iterations : 0 time: 0.00
Simplex - time: 0.00
Primal simplex - iterations : 0 time: 0.00
Dual simplex - iterations : 0 time: 0.00
Mixed integer - relaxations: 0 time: 0.00


Status: Infeasible
Optimal value (cvx_optval): -Inf

It is worth mentioning that if I utilize another cvx solver like sdp3, it gives me a negative output even though I defined nonnegative variables in my cvx.

Thank you in advance

My advice is the same as in my preceding post.

Thank you so much for your prompt reply.