Hello,

The following is my code. I face the error “The second argument must be positive or negative semidefinite.” but I cannot find out the reason.

%==================== Problem data (parameters) (Beginning) ===============

Q = [ 3 11 10 14 15 16 7 15 14 4

11 2 3 11 20 8 13 5 16 6

10 3 12 11 15 19 20 12 4 4

14 11 11 17 6 18 6 17 6 20

15 20 15 6 20 8 5 6 13 10

16 8 19 18 8 4 8 18 13 12

7 13 20 6 5 8 12 19 7 16

15 5 12 17 6 18 19 10 16 9

14 16 4 6 13 13 7 16 1 12

4 6 4 20 10 12 16 9 12 8

];

A = [ 3 9 4 6 3 7 4 8 8 8

6 2 3 10 3 9 6 11 2 5

2 11 1 9 9 10 2 5 4 9

];

b = [10 ; 10 ; 10];

%==================== Problem data (parameters) (The end) =================

%==================== The mathematical model (The beginning) ==============

cvx_begin

```
cvx_solver SEDUMI
variable X(10) binary
variable S(3)
minimize ( X' * Q * X )
subject to:
A * X + S == b;
for i = 1 : 3
S(i) >= 0;
end
```

cvx_end