Is there anything wrong with my code or my design?

Try using CVX 2.2.2 .