How to model this constraint with binary variables in CVX?

write them as
for
for
for
if(wij>0)&& j>i

then follow the steps here How to vectorize most constraint loops in CVX