Matlab with "Energy-Efficient Data Collection in UAV Enabled Wireless Sensor Network" (https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8119562)
matlab2019b with cvx (http://cvxr.com/cvx/download/)
Run Figure1.m
Run Figure2a.m
Run Figure2b.m
You need to set the "istrain" flag to 1 in Figure 1.m.