Here are some small examples of convex objectives (under minimization) one would expect to work.
Objective | CVXPY code | Result | Notes |
---|---|---|---|
x.T@x | DCP error | print shows minimize x@x, i.e. transpose is dropped | |
x@x | DCP error | ||
cp.sum_squares(x) | transformed into quad_over_lin(x, 1.0) | ||
x.T@Q@x | transformed into QuadForm(x,Q) | ||
y=x-p x.T@Q@y | DCP error | ||
x.T@Q@x - x.T@Q@p | first term transformed into QuadForm(x,Q) |
Not everything makes sense to me. I am not sure why x.T@x is not properly recognized, but x.T@Q@x is.