I am trying to solve the problem below. Here, A is a binary integer matrix, F is a matrix with elements between 0 and 1.

I am getting some error for S, which is an element-wise multiplication among three matrices A, F and R. A, F, and R are of the same dimension. R is known. A and F are variables. Vector D is also known.

```
cvx_begin quiet
variable P(N,M) integer
variable Q(N,M)
variable t
S=sum(P.*Q);
maximize t
subject to
S>=t.*L;
sum(A)>=2;
Q>=0;
Q<=1;
cvx_end
```