Dear all,

I’m optimizing the following problem

```
cvx_begin quiet
variable p(N,1)
minimize( quad_form(p,H))
subject to
quad_form( p , G ) <= 1;
quad_form( p , J) <= 1;
cvx_end
```

where H, G, and J are semidefinite positive matrices. However, I obtain the following error message:

Error using cvx/quad_form (line 230)

The second argument must be positive or negative semidefinite.

Error in pSCA (line 30)

quad_form( p , J) <= 1;

How can I express this problem? Just for the completeness, eigs(J) provides

ans =

1.0000

-0.0000 - 0.0000i

-0.0000 + 0.0000i

0.0000

-0.0000 + 0.0000i

-0.0000 - 0.0000i