error:
Error using cvx_end (line 70)
The following cvx variable(s) have been cleared or overwritten:
rbar
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)
cvx_end
cvx_begin sdp
cvx_precision high
variable rbar nonnegative;
rbar = min(R1, R2); %Auxilary Variable
maximize rbar;
cvx_end
Kindly suggest me what changes should I make to the code?