UAV-Assisted Cooperative NOMA and OFDM Communication Systems: Analysis and Optimization

: Utilizing unmanned aerial vehicles (UAVs) to facilitate wireless communication has emerged as a viable and promising strategy to enhance current and prospective wireless systems. This approach offers many advantages by establishing line-of-sight connections, optimizing operational efficiency, and enabling flexible deployment capabilities in various terrains. Thus, in this paper, we investigate UAV communication in a relaying network in which a UAV helps communication between a source and two destination users while flying to a location. To have a complete view of our proposed system, we consider both orthogonal multiple access, such as OFDMs and non-orthogonal multiple access (NOMA) scenarios. Moreover, we apply successive convex optimization (SCO) and the block-coordinate gradient descent (BCGD) for the sum-rate optimization problems to improve the system performance under constraints of total bandwidth and total power at the ground base station and UAV. The experimental results validate that the achievable secrecy rates are notably enhanced using our proposed algorithms and show optimal trends for critical parameters, such as transmit powers, the flight trajectory and speed of the UAV, and resource allocation of OFDM and NOMA.


Introduction
Over the past decade, unmanned aerial vehicles (UAVs), with their advantages of high mobility, low cost, and rapid deployment, have been used in diverse applications, including surveillance, rescue, cargo transport, and data collection in wireless sensor networks [1,2].The research community is highly interested in the newest emerging application of UAVs, that is, UAV-assisted wireless communication (UAVWC).Communication with the support of UAVs is an effective wireless network deployment solution for future communication models, specifically for 6G network systems [3].Unlike terrestrial wireless networks, where the wireless channel undergoes multi-path fading, UAVWC can provide line-of-sight connections to wireless devices by using aerial base stations; hence, UAVWC is expected to have a higher performance than existing terrestrial wireless systems.Moreover, the mobility and flexibility of UAVs allow UAVWC to operate with broader coverage or in dangerous areas that require high deployment and maintenance costs for the base stations.To exploit the great benefits of UAVWC, many recent studies on wireless communication have carried out a lot of work to solve technical challenges and optimize the performance of UAVWC [4][5][6].
Furthermore, UAVs have gained extensive utilization within wireless sensor networks.As mobile access points or base stations, UAVs present a promising resolution to address the substantial storage demands prevalent in wireless sensor networks [2,7].By facilitating UAV-assisted data aggregation from numerous sensor nodes equipped with wireless capabilities, the singular-antenna UAV empowers all sensor nodes within its coverage scope to transmit data.Consequently, these sensor nodes relay their collected information back to the UAV.Given the significant implications identified, there exists an imperative necessity to delve into research regarding the NOMA-UAV model.Thus, the model communication of the NOMA/OFDM-UAV combination can significantly enhance the performance of wireless networks in a broader context and specifically contribute to advancing wireless sensor networks.Consequently, greater attention and scrutiny are warranted to comprehensively explore the NOMA/OFDM-UAV model's capabilities and implications.

Related Work
To optimize the performance of UAVWC and exploit its benefits, recent studies on wireless communication have worked on overcoming various technical challenges.In [8], the authors examined and provided statistical models for an air-to-ground radio frequency (RF) channel in a dense urban environment, then air-to-ground RF statistical models for different conditions were investigated in [9].These results allow network designers to make easier planning and performance evaluations for WN-aNWs.The studies of UAVWC can be classified into two groups, one using UAVs as static aerial transceivers and another exploiting the mobility of UAVs, known as static and mobile UAVWCs, respectively.Moreover, in [10], the authors proposed a UAV deployment algorithm to minimize the number of UAVs needed to provide wireless coverage for a given area.In [11], the authors solved the uplink sum-rate maximization problem of a static wireless-powered UAVWC.The authors in [12] optimized the UAV's location and user association for UAV-assisted mobile networks, with the goal of making the traffic loads of UAVs almost equal so that the networks can be stable.In [13], the authors considered a low-altitude aerial platform (LAP) for the urban environment and provided a mathematical model of the altitude and wireless coverage, allowing network designers to predict the optimum altitude of the static UAVWC.
NOMA has been evaluated as a potential solution for future networks, such as beyond fifth-generation (B5G) and sixth-generation (6G) networks, because its benefits can meet the new 6G performance requirement, especially for huge connectivity [14][15][16][17].NOMA is a multiple-access technique that facilitates concurrent sharing of identical frequency and temporal resources among users [18].This is achieved by means of power domain multiplexing, wherein users are assigned distinct power levels, contingent upon their respective channel conditions, thereby enabling users with weaker signal strengths to utilize the shared resources alongside stronger signal counterparts concurrently.On the other hand, orthogonal frequency division multiple access (OFDMA) is a modulation and multiplexing technique employed in transmitting data across communication channels.OFDMA partitions the available frequency spectrum into multiple orthogonal subcarriers, facilitating simultaneous and parallel data transmission [19].Thus, many publications have investigated the application of NOMA for UAV networks.Notably, the authors in [20] outlined new opportunities and challenges with NOMA with the assistance of UAVs in more significant rate regions, balanced performance between system throughput and fairness, and reduced delay.In [21], the authors evaluated the outage probability of UAV-aided non-orthogonal multiple access (NOMA) networks and uplink and downlink transmissions.In [22], the authors analyzed a UAV-aided device-to-device network's sum rate and average coverage probability for both static and mobile UAV scenarios.Moreover, the authors in [23] investigated the delay-constrained performance analysis of a multi-antenna-assisted multiuser NOMA-based spectrum sharing system and examined the sum effective rate for the downlink NOMA system.The work in [24] solved the problem of improving the secrecy performance in UAV-assisted NOMA communication by jointly optimizing the UAV's trajectory and the transmit powers of legitimate users.A UAV-enabled space-airground integrated relay system applying the NOMA technique is presented in [25].In this publication, the authors summarized the UAV-ground NOMA communication into a maxmin problem regarding UAV's energy efficiency.The use of artificial intelligence-driven UAV-NOMA to improve the quality of experiences of terrestrial multi-users is studied in the works [26,27].Moreover, the authors in [28] investigated the UAV in PD-NOMA with concurrent uplink transmission of the aerial user (AU) and terrestrial user (TU).To enhance the achievable data rate of both AU and TU, these authors developed an analytical framework to calculate the probability of rate coverage; the results showed that the minheight of the AUE is contingent upon its distance from the BS as it follows a designated trajectory.This underscores the significance of accurately modeling the AUE trajectory within cellular-connected UAV systems.In [29], a heuristic algorithm and logarithmic approximation are applied to solve the problem of the total energy efficiency for UAV communication in a downlink NOMA network.In summary, these related works exploring UAV facilitating NOMA communication are delineated in Table 1, presented below.

Main Contributions
As the analysis has shown above, specifically in Table 1, the studies of UAV flight trajectory, its influence, and transmitted power allocation to the NOMA-UAV network using mathematical methods are limited.Therefore, in this paper, we investigated a UAV relaying system including two users, a near user and a far user.The UAV's flight path is from a beginning position to an ending position, and it assists in communication between a ground base station (GBS) and two destination users (DUs).Two multiple access techniques, orthogonal frequency division multiple access (OFDMA), in which the frequency resource is split for each user, and non-orthogonal multiple access (NOMA), in which the user's signals are transmitted on the same frequency resource with different power levels, are examined.The contributions of our work are encapsulated as follows: • We have proposed a model for leveraging UAV-assisted ground communication in specialized communication scenarios where data stations are deployed in complex terrains without direct connectivity to the base station.Our objective is to devise optimal algorithms for the operation of UAVs and ground stations to achieve the maximum system capacity for two scenarios employing NOMA and OFDMA, under constraints of energy, travelling time of the UAV, and required total data from further users; • We formulated optimization problems to maximize the system sum data rate for both NOMA and OFDMA scenarios.Since these problems are not convex, we transformed them into equivalent forms that can be readily solved using block-coordinate gradient descent (BCGD) and successive convex optimization (SCO) techniques to find the optimal parameter set.We demonstrated that our proposed algorithm guarantees convergence and significantly improves the system sum data rate metric.
The remainder of this article is arranged as follows.The system model and preliminary results for OFDMA-/NOMA-based UAV relaying (OFDMA-/NOMA-UAVR) protocols are described in Section 2. The problem formulation and solution for the sum-rate maximization for OFDMA-/NOMA-UAVR protocols are presented in Section 3. The overall algorithm and convergence analysis are presented in Section 4. The simulation results and discussion are presented in Section 5. Finally, the conclusions are presented in Section 6.

System Model
We consider a UAV relaying system, as illustrated in Figure 1, in which a UAV, R, flies at a fixed altitude H from an initial location R I R Ix , R Iy to a final location R F R Fx , R Fy , and helps a source S communicate with two users.Due to the utilization of the same decoding approach by SIC receivers in NOMA for the signals of closer users, research on NOMA typically investigates the 2-user model, consisting of a closer user and a further user.Furthermore, the receivers in OFDMA decode the received signal in a similar manner.As a result, our study concentrates on a UAV-assisted cooperative communication scheme for the 2-user scenario, aiming to minimize mathematical complexity while maintaining the overarching objective of the optimization problem.Nonetheless, the obtained results can be easily extended to scenarios involving multiple users, i.e., a closer user U 1 and a further user U 2 .S, U 1 , and U 2 are terrestrial single-antenna nodes.R uses the decode-and-forward (DF) protocol and the half-duplex mode to assist the communication.As R operates in halfduplex mode, each transmission time slot is divided into two sub-time slots.Two multiple access techniques, specifically, OFDMA and NOMA, are investigated in this study.The transmission in each sub-time slot for the OFDMA-based UAV relaying (OFDMA-UAVR) and NOMA-based UAV relaying (NOMA-UAVR) is illustrated in Figure 2. We assume that (i) there is no direct link between S and users because of obstacles; (ii) the relay's operation is over a length of time T; (iii) the UAV takeoff and landing are not considered, and we concentrate on the UAV operation period and altitude H; (iv) since U 2 is located far from S, it necessitates the system to provide a minimum required sum rate, R th U 2 ; and (v) where δ 0 is adequately small, such that the position of the UAV can be determined as a constant during δ j .Finally, in this paper, system variables for this system model are summarized in Table 2.
The horizontal positions of S, U 1 , U 2 , and R during δ n are represented by S S x , S y , U 1 U 1x , U 1y ,U 2 U 2x , U 2y , and w[j](x j , y j ), 1 ≤ j ≤ j, respectively.The channel gain from R to a ground source node X, X ∈ {S, U 1 , U 2 } during δ j is given by (1) Here, β 0 is the channel gain at d 0 = 1 (m).

Preliminary Results
In this subsection, the signal transmission equations between S, R, U 1 , and U 2 are presented.Subsequently, the data rate expressions for each user's signal are established.The results for the OFDMA-based UAV relaying (OFDMA-UAVR) and NOMA-based UAV relaying (NOMA-UAVR) schemes are presented as follows.

OFDMA-Based UAV Relaying Protocol
S transmits the signals in the initial sub-time slot within δ j that are s 1 [j] and s 2 [j], with the power P S [j] on the bandwidths a 1 [j]B, and a 2 [j]B, respectively, where B is the system bandwidth, a i [j], i ∈ {1, 2} is the bandwidth allocation factor of OFDMA and satisfies both a 1 [j] + a 2 [j] = 1 and a i [j] >a min , with 0 < a min < 0.5 as the smallest value of a j [i].The received signal and instantaneous rate at R are given by where n R,i [j] ∼ CN (0, N 0 ) is the additive white Gaussian noise (AWGN) at R. During the following sub-time slot within δ j , the relay node will forward s 1 [j] and s 2 [j] to U 1 and U 2 , respectively, on their corresponding bandwidths.The received signal and instantaneous rate at U i are given by where P R [j] is the transmitted power of node R and Due to the R node acting as the DF relay, the end-to-end instantaneous rate of s i [j] for guaranteeing successful decoding at U i is given by Using SIC (successive interference cancellation), R decodes s 2 [j] first and then eliminates s 2 [j] from the received signal before decoding s 1 [j].The instantaneous rates of s 1 [j] and s 2 [j] for guaranteeing successful decoding at R are given by In the second sub-interval slot within δ n , node R will forward s 1 [j] and s 2 [j] with the powers b 1 [j]P R [j] and b 2 [j]P R [j] , respectively, on bandwidth B. The received signal at U i is given by The instantaneous rates of s 1 [j] and s 2 [j] for guaranteeing successful decoding at U 1 are given by The instantaneous rate of s 2 [j] at U 2 is given by Since R is the DF relay, the end-to-end instantaneous rate of s i [j] for guaranteeing successful decoding at U i is given by

Sum-Rate Optimization Problem Formulation
In this section, we utilize the findings from Section 3.1 to formulate the optimization problem of maximizing the sum data rate for both the OFDMA-UAVR and NOMA-UAVR schemes under the constraint of achieving the required sum rate at U 2 , the power budgets, the trajectory of UAV, and the resource allocation factors.
Letting P Y,Σ and P Y,max denote the power budget and maximum transmit power during δ n of node Y ∈ {S, R}, we have the following inequalities: With the above assumptions from Section 2, the constraints of the UAV trajectory or of R are expressed as (P1) max (15 − 21).
Next, letting w[j]], the issues related to maximizing the sum- rate of our proposed system for both the OFDMA-UAVR and NOMA-UAVR protocols are, respectively, formulated as in ( 22) and ( 23), shown at the top of the page.
For the NOMA-UAVR protocol, the SIC of U 1 must decode s 2 [j] before trying to detect the signal s 1 [j]; hence, the constraint in Equation (23d) is the condition for successfully decoding s 2 [j] at U 1 , which allows the SIC at U 1 to operate correctly.

Proposed Alternative Optimization Problem
In Section 3, we have presented the formulation of the sum data rate optimization problem for the considered system.However, it is important to note that the objective functions in (22a) and (23a) are neither convex nor concave.Therefore, (P1) and (P2) are not in the form of convex optimization problems and cannot be solved using convex optimization tools such as CVX.For that reason, we propose alternative solutions that allow us to tackle these non-convex problems using the BCGD and SCO approaches.In particular, we apply the BCGD approach to optimize individual variable blocks of (P1) and (P2) while maintaining the other variable blocks unchanged.For a given resource allocation factor a (or b) and transmit powers P ∆ = {P S , P R }, we optimize the trajectory of R, W (defined as (P1.1) and (P2.1) for the OFDMA-UAVR and NOMA-UAVR protocols, respectively).For a given UAV's trajectory W and a (or b), we optimize the transmit powers P (defined as (P1.2) and (P2.2) for the OFDMA-UAVR and NOMA-UAVR protocols, respectively).Finally, for a given W and P, we optimize a for the OFDMA-UAVR protocol (defined as (P1.3)) and b for the NOMA-UAVR protocol (defined as (P2.3)).The non-convex objective functions are addressed by applying the SCO method.Ultimately, we introduce the comprehensive algorithms and prove the convergence behaviour of these proposed methods.

UAV Trajectory Optimization (TO)
In this subsection, we use the SCO method to optimize the trajectory of R for the OFDMA-UAVR and NOMA-UAVR protocols.

TO in OFDMA-Based UAV Relaying Protocol
Substituting (1) into (3) and ( 5) yields where A ofdma 1 [j] = P S [j]β 0 N 0 and A ofdma 2 [j] = P R [j]β 0 N 0 .It is seen that, although (24) and ( 25) lack convexity concerning w[j], they exhibit convexity in relation to ∥w[j] − S∥ 2 and ∥w[j] − U i ∥ 2 , respectively.This attribute allows us to derive lower bounds for R ofdma R,s i [j] and R ofdma U i ,s i [j] that are convex with respect to w[j].Specifically, at a given point W l ≜ w l [1], . . ., w l [j] (we assume that W l is the optimal UAV's flight trajectory obtained after the l-th iteration), the following lower bounds can be obtained using the first-order Taylor expansion [17] : where A ofdma 1 [j], A ofdma i+1 [j], B ofdma 1 [j] and B ofdma i+1 [j] are given by B ofdma 1 Using ( 26) and ( 27), at any given a, P and W l , (P1) is approximated by (P1.1) (or ( 29)) shown below: It is seen that (P1.1) is a convex optimization problem that can be efficiently solved by standard convex optimization solvers (such as CVX implemented in Matlab 8.1).

TO in NOMA-Based UAV Relaying Protocol
Substituting (1) into ( 8), (9), and (11)-( 13) and after some manipulations, we have where Following the similar approach as in Section 4.1.1,we can obtain the following inequalities using the first-order Taylor expansion: where [j], and B noma 4 [j] are given in (37), shown below: B noma 1 Next, using (33) and (34), Constraint (23d) can be rewritten as It is seen that ( 38) is not a convex constraint.Since the right-hand side of ( 38) is convex with respect to w[j], (38) can be rewritten by applying the first-order Taylor expansion as follows: Using ( 35), (36), and (39), for any given a, P, and W l , (P2) is approximated by (P2.1) (or (40)) shown at the top of the next page: It is seen that (P2.1) is a convex optimization problem, and we can apply standard convex optimization techniques to address this efficiently.

Transmit Power Optimization (TPO)
In this subsection, we optimize the transmit powers of S and R for the OFDMA-UAVR and NOMA-UAVR protocols.

TPO in OFDMA-Based UAV Relaying Protocol
Substituting ( 6) into (22), at a given a and W l , (P1) can be expressed as (P1.2) (or (41)), shown below: where B ofdma 1 , and B ofdma 3 . It is seen that (P1.2) represents a convex optimization problem amenable to efficient resolution using standard convex optimization solvers.

TPO in NOMA-Based UAV Relaying Protocol
For any given a and W l , ( 9) and ( 13) can be rewritten as where are the optimal transmit powers of S and R, respectively, obtained after the l-th iteration.The application of the first-order Taylor expansion allows us to derive the following inequalities: Substituting ( 8), ( 11), (44), and ( 45) into ( 23), (P2) can be approximated by (P2.2) (or (47)), shown below: where 2) is a convex problem that can be efficiently addressed by using conventional convex optimization solvers.

Optimizing the Resource Allocation (ORA)
In this subsection, we optimize the bandwidth allocation factor a and power allocation factor b for the OFDMA-UAVR and NOMA-UAVR protocols.

ORA in OFDMA-Based UAV Relaying Protocol
For any given P and W, (P1) can be rewritten as (P1.3) (or (48)), shown below: It is seen that (P1.3) is a convex optimization problem that can be efficiently addressed by using conventional convex optimization solvers.

Proposed Comprehensive Algorithm
In this section, we present the outline of the overall algorithm, denoted as Algorithm 1, for optimizing the sum rate of the considered system using the BCGD technique and alternative optimization problems formulated in Section 4. Additionally, to satisfy the required sum rate constraint at U 2 , an initialization scheme, denoted as Algorithm 2, is designed to find valid initial parameter sets for Algorithm 1.

7.
Until The fractional increase of the objective value is below a small threshold ε.
With given {W l InitS , P l InitS }, solve (P3.1) or P(4.1) to find and then update the optimal UAV's trajectory to W l+1 InitS .

6.
Until The objective value η InitS is higher than Else 10.
Ultimately, a summary of Algorithm 2 can be located in Table 2, where L max is the utmost limit of iterations.
Algorithm 2 begins with an initial flight path of the UAV, which consists of a straight line connecting points RI and RF and maintains a constant velocity of V0, where V0 = |R I −R F | T .Additionally, the initial transmission power settings are established as P 0 S,InitS [j] = P S,Σ N and P 0 R,InitS [j] = P R,Σ N.

Simulation Results
This section presents numerical findings to validate the effectiveness of our proposed optimization algorithms.The system parameters are set up in our simulations as T = 300 (s), N = 60, β 0 = 1,

UAV's Fight Trajectory and Velocity Analysis
In Figures 3 and 4, we investigate the optimum flight path and velocity of R obtained using the proposed algorithms.The trajectory of R is separated into three phases.During the initial phase (n ≤ 13), the positions of R are far from the source and users; this leads to low-efficiency communication.For this reason, during the initial phase, R almost does not forward any information to users and it flies quickly to efficient communication regions (ECRs) where it can assist the commutation at higher data rates.At the second phase, the efficient-communication phase (ECP) (14 ≤ j ≤ 48), R operates over the two specific ECRs, the ECR U1 , ECR U1 = {ECR U1a , ECR U1b }, for providing the good S − U 1 communication and ECR U2 for providing the good S − U 2 communication.ECR U1 and ECR U2 are illustrated in Figure 3. Depending on the configuration of the system, the size of ECRs can be larger or smaller.It is seen that the ECRs are between the source and users that agree with the assessment for the optimum location of the static relay in the conventional relaying systems.As shown in Figure 4, R spends a duration (around 28 ≤ j ≤ 32 ) to stay at ECR U2 to guarantee the required sum rate of U 2 , R th U 2 , and also to maximize the system sum rate.When U 2 requires more data, i.e., R th U 2 increases, R tends to spend more time at ECR U2 .This can be confirmed using the results for velocity for the case of R th U 2 = 7 (bits/s/Hz).For the NOMA-UAVR protocol, the trajectory significantly changes as R th U 2 increases from 6 to 6.5 (bits/s/Hz); otherwise, it almost does not change.For the OFDMA-UAVR protocol, the trajectory substantially changes with the increase in R th U 2 .For high values for R th U 2 , R flies with a similar trajectory in both NOMA-UAVR and OFDMA-UAVR protocols.At the final phase (n ≥ 49), R stops forwarding the information to users and quickly flies from ECR U1 and/or ECR U2 to the final location.

Transmission Powers and Resource Allocation Analysis
In Figures 5 and 6, we present the optimal transmitted powers and resource allocation elements (i.e., a and b) obtained using the proposed algorithms.In these figures, we focus on the patterns in the transmission power levels, a and b, during the ECP (14 ≤ j ≤ 48).Particularly, these trends are separated into three sub-phases.During the first sub-phase of the ECP, the transmit powers increase as R flies closer to ECR U1a , then reach a peak and decrease as R flies far away from ECR U1a to transit to ECR U2 .Next, during the second sub-phase of the ECP, the transmits powers increase again as R flies toward to ECR U2 , then they slightly vary as R flies in ECR U2 , and, finally, they decrease as R flies far away from ECR U2 and transits to ECR U1b The trends in the transmit powers in the last sub-phase of the ECP are the opposite trends from the first sub-phase of ECP.Moreover, the trends observed at low values of R th U 2 (e.g., R th U 2 < 7) are more obvious than those observed at high values (e.g., R th U 2 = 7 (bits/s/Hz)).As shown in Figure 6, the general trend of a 1 (or b 1 ) is receiving high values as R flies near ECR U1 and low values as R flies near ECR U2 .Similarly, we can also explain the trend in a 1 (or b 1 ) using the effects of the trajectory of R, ECR U1 , and ECR U2 on the instantaneous rates at U 1 and U 2 .

Analysis of Instantaneous Rate and Sum Data Rate of Each User
Figure 7 examines each user's optimal patterns in the instantaneous rate.The instantaneous rate is positive during the ECP and equal to zero during the rest phases.The instantaneous rate of U 1 receives high values at the beginning and end of the ECP, while the instantaneous rate of U 2 receives elevated values in the middle of the ECP.These patterns can be elucidated by referring to the outcomes regarding the flight trajectory of R, transmission power levels, and a (or b).When R th U 2 increases, the instantaneous rate of U 2 for each time slot becomes higher; moreover, the high-rate region of U 2 expands on both sides of the n axis, while the high-rate region of U 1 follows the inverse trend.
Figure 8 presents the trend in the optimal sum data rate for x 1 of U 1 and the optimal sum data rate for x 2 of U 2 .The purpose of our proposed algorithms is to maximize the system total data rate; however, Figure 8 shows that the obtained efficient solution using the proposed algorithm aims to maximize the sum data rate of U 1 while guaranteeing the required sum data rate of U 2 .This is a reasonable result due to the disadvantageous position of U 2 .Comparing OFDMA-UAVR and NOMA-UAVR protocols, we realize that the OFDMA-UAVR protocol outperforms the NOMA-UAVR protocol at very low or very high values for R th U 2 , whereas the NOMA-UAVR protocol outperforms the OFDMA-UAVR protocol at medium values for R th U (such as R th U 2 = 5 or R th U 2 = 6).These results emphasize the benefits of the NOMA-UAVR protocol in providing fair communication service for the multi-user system.

Conclusions
In this paper, we proposed algorithms to solve the system sum data rate maximization problem of a UAV-based relaying two-user system for two multiple access techniques, OFDMA and NOMA.Our proposed algorithms aim to guarantee service for the far user while maximizing the sum data rate for both users.By applying the SCO and BCGD techniques, the proposed algorithms optimized the UAV's flight trajectory, factors of resource allocation, and transmit powers.The numerical results confirmed that the system sum data rate significantly improved coverage.Furthermore, the optimal patterns in critical parameters, such as transmitted powers from GBS, the flight path and velocity of the UAV, and the resource allocation ratio, were revealed.Notably, the UAV tends to fly near or stay in specific areas, allowing efficient communication between the source and each user.The proposed algorithms tend to guarantee the minimum required sum data rate at the further destination user and maximize the sum data rate at the closer destination user.Finally, the obtained results demonstrate that the NOMA-UAVR protocol outperforms the OFDMA-UAVR protocol for the fair user-service scenario, whereas the OFDMA-UAVR protocol outperforms the NOMA-UAVR protocol in maximizing the system sum rate for very low or very high required sum rate for the far user.In this study, the optimal results were computed using solvers from the CVX optimization toolbox in Matlab for performance verification.However, in practical applications, CVX is not suitable due to its slow processing speed.To facilitate implementation on embedded hardware, realtime optimization solvers such as Structure-Aware Linear Solver [30] and CVXGEN [31] can be employed.

Figure 3 .
Figure 3.The optimal flight path for the UAV under varying C th U 2 values.

Figure 4 .
Figure 4.The optimal velocity of the UAV under varying R th U 2 values.

Figure 5 .
The transmit powers (P R , P S ) of the (a) OFDMA-UAVR and (b) NOMA-UAVR protocols with different values of R th U 2 .

Figure 6 .Figure 7 .
Figure 6.The allocation parameter for resources under varying R th U 2 values.

Figure 8 .
Figure 8.The optimal sum rate at each user under varying R th U 2 values.

Table 1 .
Summary of related works.

Table 2 .
Summary of system variables.