```
Hi, I want to formulate a minimization problem in CVX.
```

The objective function is sum((cumsum(reshape(sum(reshape(A.*X,6,3),2),3,2)).*Y)(:)), where Y=reshape(sum(reshape(X,6,3),2),3,2) is a 3-2 binary, A is a 3-2-3 double and X is a 3-2-3 nonnegative.

Disciplined convex programming error: Invalid quadratic form(s): not a square.

I can not use *, find(), unique(), isnan() and other functions due to B is binary. I have already tried my best for it. Could you please help me?