Open WenXun64 opened 6 months ago
If you have just cloned the GitHub repo and run the code without any modifications, the following points may help you resolve the problem.
To verify the correctness of the CVX solutions, you can manually check if the solutions satisfy all constraints in the problem.
I have asked my colleague to test the code, and he can reproduce the results. But, I have realized that some syntax in my code may cause errors due to the Matlab version. So, to make sure the environments match, below are the versions of the softwares I used in this simulation
Based on your advice, I have changed my environments match to Matlab:2023b and CVX:2.2. But, when I use the SDPT3:4.0 solver, the results are as follows: When I use the SeDuMi:1.02 solver, the results are as follows: Under the SeDuMi:1.02 solver, the results look similar to your article, but there are still slight differences in beam pattern, such as pattern gain, and communication beam deviation of 0.05° at 90°. Could you tell me some suggestions?
For now, I just have a few potential reasons in mind.
The error in the first figure may result from improper scaling of the problem's values. Sometimes, manual scaling is necessary to ensure that the values fall within the precision range of the solvers.
As for the small beam deviation, I think it occurs because numerical solvers make certain assumptions about precision and error tolerance, leading to small numerical errors in the solutions.
The solution to the problem is optimal but may not be unique. I didn't check this thoroughly. If this is the case, it could explain the difference in the beam pattern.
Below are links to some relevant posts on CVX forum for your reference:
You may use some better solvers, such as Mosek and Gurobi, to ensure stable results. They also provide academic licenses.
Thank you for your patient answer. By using Mosek solver, the simulation results have been improved to some extent.
I would like to know what manual scaling you made when emulation the first figure. Could you please tell me in detail?
Since I didn't have this issue before, I didn't do manual scaling in my code. If you want to do manual scaling, you may try multiplying both sides of the constraints by a large number, e.g., 1e4. Some variables have large values, resulting in small values in the constraints, e.g., sqrt(1/gamma_t).
In the process of replicating the graphics, the beam mode from the results of the joint beamforming optimization was well shifted, and the communication beam at 90° and 135° I simulated was wrong. Why is that?