Have you tried applying my previous suggestion to you at How to implement following function in CVX? ?