How can I initialize variables at the start of CVX?
as I was running the code, and the successive access method is used, I found out that the first variable started near zero while the second variable started near 2e^300. Is there any way for me to initialize the 2 variables with certain values? like Qx =-500 and Qy= 20 and start the iteration from there.
power(2,norm([D_UG(i-1) norm([Uopt sqrt(2U508)])]))<=0;
power(2,norm([D_UR(i-1) norm([Vopt sqrt(2V502)])]))<=0;
CVX variables can’t be initialized by the user. How do you even know what values the solver started your variables at?
Your program is very crazy looking, and seems unlikely to be what you really want, although I have no idea what that is.
What is the successive access method you refer to? Apparently, it is not CVX’s Successive Approximation method. Not is it obviously Successive Convex Approximation (SCA), unless there is part of your program you are not showing.
Your program has no minimize or maximize statement. Therefore, it is a feasibility problem. I.e., any feasible solution is optimal.
You appear to be doing something crazy with Qx_old, Qx_new, Qy_old, Qy_new. if you are trying to do SCA, the fixing of variables and convexifying around the fixed values, needs to be outside cvx_begin … cvx_end, not inside it. if you use SCA, you can choose the starting value for the “fixed” variable(s), because that is input data to the CVX optimization problem, and those are not (optimization) variables as considered by CVX.