Hello every one, I am trying to covert this to CVX.

**x_ij**is a weighted factor variable to control the balance of

**a**and

**b**.

**y_ij**is the association variable, i.e., if i is associated to J, then its corresponding

**y_ij = 1**, otherwise

**y_ij = 0**.

**m = 1**for simplicity.

a = [4,6,3,8,5]’;

b = [9,14,12,19,15]’;

c = [20,30,70,60,50];

d = [1,1,1,1,1];

n = 5;

cvx_begin

variables x(n) y(n)

minimize((sum((vec(a).*(1-x))+(vec(b).*x))).*y);

for i=1:n

x(i), y(i)

end

subject to

0 <= x <= 1

0 <= y <= 1

sum(c ) * y >= 50;

sum(d) * y <= 2;

cvx_end