About division in constraints

Have you read the CVX user’s Guide? If so, you would not have seen any allowance for dividing affine expressions.

Have you proven your optimization problem is convex? You haven’t shown the entirety of your problem, and you seem to not be showing us an intended for loop, so forum readers don’t know what use is made of 'sum`, so we can’t be sure there is not a convex reformulation, but the burden is on you to show convexity.