I have no idea what your problem is or what your code is supposed to represent.
Where does x appear in the depicted objective function? Does d depend on x? You need o spell out much more clearly what the optimization problem is which you would like to represent in CVX.
You can not have a minimize statement consisting of 2 different variables separated by spaces. Do you mean for the two variables to be multiplied together? If so, that is not allowed.
Have you read the CVX Users’ Guide? If not, please do so. If so, please re-read. http://cvxr.com/cvx/doc/ .
Are you sure you problem is (mixed integer) convex? Why isn’t CVX accepting my model? READ THIS FIRST!