How can model this problem in cvx

morteza: this is going to sound mean, but: please stop trying to use CVX. It is simply not designed for the types of problems you are trying to solve. And as stated quite clearly in the FAQ, if you don’t use it properly, it can be a very frustrating piece of software to use. In particular, you have to understand convex optimization well to use it effectively.

You have asked a number of questions on this forum, and well over half of them have involved problems that CVX is not designed to solve, and never will solve. The documentation and FAQ make this clear; if they do not, please recommend changes to those documents so I can help you understand why CVX is not a good choice for your applications.