I have the following semidefinite programming problem:
n = 12;
x = randn (n,1);
A = randn (n,n);
Ax = A*x;
variable P(n,n) symmetric
quad_form(Ax , P) <= g*quad_form(x , P);
g >= 0;
P == semidefinite(n);
The right-hand side of the first constraint, seems to violate the no-product rule.
Upon running, the following error massage appears:
Disciplined convex programming error:
Invalid quadratic form(s): not a square.
How can I fix the problem?!