I’m having a problem with the CVX toolbox in matlab. I’m sure of my constraint: ln(1+1/x)-1/(1+x) is a convex function. But I don’t know why it got an error on compilation. np1*((rel_entr(t1+1,t1)+rel_entr(t1,t1+1))-1*inv_pos(1+t1)) + nd1*((rel_entr(t2+1,t2)+rel_entr(t2,t2+1))-1*inv_pos(1+t2)) <= 2*epsilon^2; The first constraint is the problem. This is my part of the code:

```
cvx_begin
variables t1 t2
% Objective function
minimize( A*t1 + B*t2 + A*B*0.25*((t1+t2)^2+(4-3)^2-2*(4-3)*(t1-t2)) )
% Constraints
subject to
np1*((rel_entr(t1+1,t1)+rel_entr(t1,t1+1))-1*inv_pos(1+t1)) + nd1*((rel_entr(t2+1,t2)+rel_entr(t2,t2+1))-1*inv_pos(1+t2)) <= 2*epsilon^2;
t1 - sigma_w/(Pa_max*beta_aw) >= 0;
t2 - sigma_w/(Pup_max*alpha_uw) >= 0;
cvx_end
```