I have a known matrix, H of size U\times B.
The optimization variable is D of same size, which is binary
Now I have,
S_u=\frac{\sum_{b=1}^{B} D_{u,b}H_{u,b}}{\sum_{b=1}^{B}H_{u,b}-\sum_{b=1}^{B} D_{u,b}H_{u,b}}, \forall u, u=1,\cdots, U
And I want to maximize \sum_{u=1}^US_u
I am doing the following,
Num=sum(D.*H,2);
Denom=sum(H,2)-Num;
Ratio=Num./Denom;
maximize sum(Ratio)
it is throwing me the following error
Disciplined convex programming error:
Cannot perform the operation: {real affine} ./ {real affine}
Error in ./ (line 19)
z = times( x, y, ‘./’ );
How can I get rid of this? Any alternative formulation of the objective function!