Dear expert,
I met an error when I did simulations. My simple code is listed as below:
h=2;
n=1;
cvx_begin
variables P t;
maximize t*log(1+P*h/n);
subject to
P>=1;
P<=8;
t>=0;
t<=1;
cvx_end
I have confirmed that the objective function in this code is concave w.r.t. P and t by deriving the objective function’s Hessian Matrix. Therefore, the related optimization problem is convex. Could you please tell me is there a suitable expression relating to the objective function such that the error can be avoided?
Thank you very much in advance.