Error using cvx/times: Invalid quadratic form(s): not a square

u(i)*u(j) is an indefinite form. You can think of this as being x*y when both x and y are CVX (optimization) variables.

Is your problem convex? If so, how have you proven it? Why isn't CVX accepting my model? READ THIS FIRST!