Hi all,

I am a newbie to CVX tool and trying to implement a problem (Snapshot Attached). I have tried many ways but unable to find the solution. I want to solve it as a Linear Program.

```
lpi_hat =[5 0;0 5];
lpv_hat=[-1 0 -1 0 -1 0 -1 0 -1 0;0 -1 0 -1 0 -1 0 -1 0 -1];
x_v= [1;4;3;4;5;2;3;1;1;1];
x_j=[2;5];
d=[4;4];
cvx_begin
variable x_p(2)
minimize (-lpi_hat.*x_p-lpv_hat.*x_v)
subject to
(x_p)-(x_j)<=d
cvx_end
```

I am continuously facing a problem like

"Error using .* (line 46)

Matrix dimensions must agree.

Error in CVX_Examplr (line 11)

minimize (-lpi_hat.*x_p-lpv_hat.*x_v)"

I will be quite thankful if someone can help me in this regard.