My purpose is to find the optimal value of the function,

\sum_{i=1}^{10}\log_2(1+\frac{x_iy_i}{x_i+y_i}),\quad x,y\in{R}^{10}_+,

subject to \sum_{i=1}^{10}x_i+y_i=2, which is concave on the defined domain. so I want to maximize it as an objective function in CVX. but the code doesn’t work (dcp error). Is it possible to write this function in a way that CVX will recognize its concavity?

`n=10;`

`cvx_begin`

`variable X(n)`

`variable Y(n)`

`maximize( sum(log2(1+((X.*Y)./(X+Y)))))`

`subject to`

`min(X)>=0;`

`min(Y)>=0;`

`sum(X+Y)==2;`

`cvx_end`