You are violating CVX’s DCP rules by multiplying variables in w_com
b by the variable (elements in) x
. This is recognized by CVX as an indefinite quadratic form which is neither convex nor concave, hence the somewhat cryptic error message.
Please carefully read Why isn't CVX accepting my model? READ THIS FIRST! .