Error using cvx_end (line 70)
The following cvx variable(s) have been cleared or overwritten:
This is often an indication that an equality constraint was
written with one equals ‘=’ instead of two ‘==’. The model
must be rewritten before cvx can proceed.
Error in Optimize_R (line 43)
variable rbar nonnegative;
rbar = min(R1, R2); %Auxilary Variable maximize rbar;
Kindly suggest me what changes should I make to the code?