How to solve a [non-]convex problem with multiple scalar and matrix variables

Your problem is not, in fact, convex.