Optimized Power Allocation and Relay Location Selection in Cooperative Relay Networks

An incremental selection hybrid decode-amplify forward (ISHDAF) scheme for the two-hop single relay systems and a relay selection strategy based on the hybrid decode-amplify-and-forward (HDAF) scheme for the multirelay systems are proposed along with an optimized power allocation for the Internet ofThing (IoT). Given total power as the constraint and outage probability as an objective function, the proposed scheme possesses good power efficiency better than the equal power allocation. By the ISHDAF scheme and HDAF relay selection strategy, an optimized power allocation for both the source and relay nodes is obtained, as well as an effective reduction of outage probability. In addition, the optimal relay location for maximizing the gain of the proposed algorithm is also investigated and designed. Simulation results show that, in both single relay and multirelay selection systems, some outage probability gains by the proposed scheme can be obtained. In the comparison of the optimized power allocation scheme with the equal power allocation one, nearly 0.1695 gains are obtained in the ISHDAF single relay network at a total power of 2 dB, and about 0.083 gains are obtained in the HDAF relay selection system with 2 relays at a total power of 2 dB.


Introduction
Recently, multiple-input multiple-output (MIMO), as a milestone in the development of wireless communications, brought an efficient transmission rate and reliability.To put it into practice, a cooperative communication scheme was then proposed in time [1], and it had been widely used and rapidly developed.In cooperative communications, the diversity gain was obtained, when the relay node forwarded messages and the destination node combined the received signals from both the source and relay nodes.According to different strategies for processing signals at the relay nodes, there are mainly three cooperation schemes, such as the amplify-and-forward (AF) [1], the decode-and-forward (DF) [2], and the coded cooperation (CC) [3].To solve the deficiency of AF relay amplifying both the noises and signals, causing the incorrect DF relay decoding and also the error propagation phenomenon, an incremental relay protocol [4], accompanied by a hybrid decode-amplify-andforward (HDAF), was proposed [5].For the shortage of the incremental relay protocol, the incremental selection amplify-and-forward (ISAF) [6] was investigated, which selected the proper occasion to retransmit the messages in the source according to the channel estimation, when the direct transmission between the source and destination was failed.But the noise amplification still remained.Then, an incremental selection hybrid decode-amplify forward (ISHDAF) scheme was proposed in [7], where the HDAF scheme was combined with incremental selection strategy.Compared with the aforementioned ISAF scheme, the ISHDAF scheme had a significant improvement in bit error rate (BER) and outage probability, since both the BER and outage probability of a cooperative transmission system in the DF strategy were lower than those in the AF strategy.According to the principle of incremental relay, the average spectral efficiency of the ISHDAF scheme was also higher than that of the HDAF scheme.However, all gains were obtained under equal power allocation of the source and relay nodes for the low systematic complexity, which caused the deficiency of only few performance improvements.To improve the spectral efficiency of the system, there was also a signal-tonoise ratio (SNR) based incremental hybrid decode-amplify forward (IHDAF) protocol proposed in [8].Furthermore, the SNR thresholds, the power allocation schemes, and the relay locations were studied to optimize the outage probability and BER performance.
Meanwhile, power allocation in cooperation communications had always been one of the research hot-spots.In wireless uplink transmissions, successive interference cancellation (SIC) was combined with the power allocation method to obtain the optimal power allocation ratio for efficient resource allocation [9].For relay forwarding systems, two power allocation methods, by the Lagrange multiplier method and the differential algorithm, respectively, were also proposed for the lower bound of symbol error rate (SER) in the HDAF relay cooperative networks [10].Xiao and Ouyang in [11] developed a two-source-destination-pair cooperative network with the HDAF protocol.And a closedform expression of the outage probability was derived and thus a minimal total power was obtained under the constraints of the supposed outage probability.Similarly, for the two-source-destination-pair system, there was also a parallel shift water filling algorithm proposed for the power allocation [12].The advantage of it over the conventional ones was the reduced complexity by just eliminating the iterative searching process.However, the cost is a little performance decrease.In [13], a multirelay selection scheme with joint power allocation was proposed, featured with the significantly decreased complexity of computation.To achieve this effect, it used a simple power reallocation during the multirelay selection process.Also a joint relay selection and power allocation scheme for cooperative wireless sensor networks was proposed in [14].It adaptively chose the proper relays and their transmission power to maximize the signal-to-noise ratio (SNR) at the destination by the channel state information (CSI).Then a SNR-based relay selection for IHDAF cooperative diversity protocol was also proposed in [15], and the closed-form expressions of average channel capacity and outage probability were derived simultaneously.Also a swarm intelligencebased power allocation and relay selection algorithm could be used for wireless cooperative networks [16].It could not only reduce the computational complexity effectively, but also select the optimal relay nodes to solve the nonlinear optimization problems by a fast global search with low cost.In [17], with a AF protocol based two-hop multiple energyharvesting relays network, an improved power allocation was investigated to improve the whole outage performance.The innovation in the proposed scheme lied in the fact that it jointly maximized the transmit power under the constraints of limited individual relay energy.Also the power allocation and relay selection strategies in both dual-hop and multihop scenarios in cognitive relay networks were researched [18].They achieved the good features of both minimal total transmit power and maximal entire network capacity.For the relay selection optimization, there had been a dynamic strategy to choose the best relay node and path under the constraints of total power and power allocation for each relay [18].In addition, an improved relay selection strategy of HDAF scheme was proposed to improve the BER and outage probability [19].It can adaptively select the AF or DF forward strategy for all relays according to the channel quality.Then the best relay was chosen to forward signals.However, it still used the equal power allocation to reduce the complexity.In [20], a power allocation algorithm by the lowest average bit error was proposed for these infrastructure-less networks using unbalanced communication links.To investigate the influence of the links on the system performance, the location of the relay node with respect to the source and destination nodes was also studied.Unfortunately, only the effect of certain node locations, rather than the optimal relay location, was determined.Subsequently, a much more detailed study about the optimal relay location was presented in [21], but under simply fixed ratio nodes power.
In this paper, by analyzing a two-hop single relay cooperative network with an ISHDAF scheme and the multirelay selection strategy with a HDAF scheme, an optimized power allocation is proposed.The main contributions are summarized as follows: (1) The power allocation is optimized in both the ISHDAF single relay and the HDAF multirelay systems.In the case of link status change, the preferred links are allocated with much more power for transmission according to the well-known water filling principle in information theory, which reduces the entire power consumption under the same system performance.The proposed scheme also provides a new hybrid automatic repeat request (ARQ) retransmission and relay forward mechanism, where the source node can retransmit messages to the destination node when the first direct transmission failed.It differs from the source node sending new messages to the destination node directly in the incremental relaying protocol.So it can be more suited for all kinds of the multiple relay channel status and obviously improves the systematic outage probability without any complexity increase.(2) The approximate closed-form expression of the systematic outage probability with relation to the node power and channel coefficients is derived by the equivalent infinitesimal replacement of the probability distribution function at high SNR.And it can be taken as the objective function of the optimization.Then, the minimization is achieved under fixed total power by Lagrange multiplier method, and the objective function is related to the power of the source node and the relay nodes.The power allocation coefficients between the source and the relay nodes are then obtained to achieve optimized power allocation.Moreover, the power allocation changes the location selection of the relay nodes, which can be calculated indirectly from the above closed-form expression.It can adaptively satisfy the link conditions to optimize the entire system performance.(3) By introducing the path loss factor, the powers of the source and the relay nodes are modeled as the objective function related to the distance among all nodes.According to both the property of the objective function and the related numerical analyses, the relationships of the varied power to the distance of the nodes are obtained.Then, the optimized node positions are obtained to improve the power efficiency with minimized systematic outage probability.Also the power allocation of all relay nodes with respect to their relative location to the source and destination nodes can be clearly and quantitatively analyzed by this model.Therefore, the link status associated with the proposed relay position obviously affects the selection of the cooperative schemes, which can be adopted in practice.
This paper is organized as follows.In Section 2, a single relay cooperation system with the ISHDAF scheme is introduced.Section 3 presents a multirelay selection strategy based on the HDAF scheme.Subsequently, the analytical expressions of the outage probability of both the ISHDAF and the HDAF relay system are derived in Section 4. In this section, an optimized power allocation using Lagrange Method is also proposed to minimize the outage probability.Simultaneously, the close-form analytical expression of the optimal relay location of the proposed algorithm is given to manifest the relationship between the relay location and the outage probability.After that, in Section 5, the simulation results and analyses are presented to verify the good outage probability and optimal power allocation brought by the proposed algorithm.The optimal relay location by the proposed method is also given and tested to be effective.Finally, Section 6 concludes the whole paper.

Single Relay Model and ISHDAF Mutual Information Evaluation
For a classic three-node relay model shown in Figure 1, it consists of a source node S, a relay node R, and a destination node D. Equipped with a single omnidirectional antenna, all nodes communicates with each other.The ideal channel state information (CSI) can be obtained through channel training.For the independent links S-D, S-R, and R-D, their channel gains, that is, |ℎ  | 2 , |ℎ  | 2 , and |ℎ  | 2 , are subject to the exponential distribution with channel parameters as 1/  2 , 1/  2 , and 1/  2 , respectively.At a flat Rayleigh fading channel, the noise is an additive white Gaussian noise (AWGN), with zero mean and variance  0 .
In an ISHDAF cooperative network, the whole transmission is divided into two time slots.In the first slot, node S sends a signal to node R and node D, while in the second slot, either node S or node R sends the signal to node D, which depends on the link status.Suppose that the transmitted power of the source node S is  1 , and the information transmission rate is  bit/s.There are two main situations according to the decoding results of the destination node.
For the first situation, if the destination node successfully receives the signal sent by the source in the first slot, the transmission from node S to node D is not interrupted.In this case, the mutual information is defined in [22] as which needs to be larger than  according to the information theory.By simplifying (1) and the condition of , the source node S keeps transmitting directly to the destination node D in the second slot, and the relay node R remains inactive.
For another situation, if the direct transmission fails in the first slot, or the destination does not receive the correct information from the source, the source would retransmit the message to the destination in the second slot.In this case, the mutual information is deduced and presented in [6] as To ensure the success retransmission, (2) should also be larger than  and it can obtain the source retransmits message and the relay remains inactive in the second slot.
The relay node starts the cooperative transmission when there is |ℎ  | 2 ≤  1 /2.Then, if the relay can correctly decode the information from the source, the DF scheme is adopted in the second slot.It needs to satisfy the relationship of which is the required condition for the relay to forward the correct signal in the DF protocol.Otherwise, when |ℎ  | 2 ≤  1 , the AF protocol is used instead.
If the DF scheme is adopted for the cooperative transmission, the mutual information is obtained by the maximum ratio combining (MRC) for the destination as If the relay node transmits in the AF protocol, the mutual information is expressed in [6] as where (, ) = /(1 +  + ).
In summary, the mutual information in the ISHDAF cooperative network is concluded as follows.When |ℎ  | 2 >  1 , the source directly transmits to the destination successfully, and the mutual information is  DT .When  1 /2 < |ℎ  | 2 ≤  1 , the direct transmission in link S-D failed.But the retransmission is successful in the second slot, and the mutual information is  DRT .When |ℎ  | 2 ≤  1 /2 and |ℎ  | 2 >  1 , the DF protocol is used to forward the messages and the mutual information is given as the AF protocol is employed to forward the messages, and the mutual information is expressed as  AF .

Multiple Relay System Model and Relay Selection Strategy
There is a typical two-hop multirelay cooperative network shown in Figure 2, consisting of the source node S, the destination node D, and  relay nodes R  ( = 1, 2, . . ., ).
Equipped with single omnidirectional antenna, all the above nodes operate in a half-duplex mode.Hence the entire transmission procedure is also divided into two slots, under the independent and identically distributed (i.i.d.) AWGN channel noise.In addition, all channels are also supposed to be the flat Rayleigh fading channels, with fixed channel gains and independent channel status in each transmission.The destination node can select the appropriate relay nodes and notify them to forward the source information, where the channel status information (CSI) is available between all nodes through training sequence feedback.Based on the system model, there is a relay selection strategy as the HDAF scheme, which chooses the AF or DF scheme to forward signals adaptively according to the channel status.If the channel status of link S-R i is good enough for the relay to decode the source information, the DF protocol is selected to forward signals in the relay.Otherwise, the AF protocol is just used to prevent from the error propagation.According to the above strategy, the  relays can be divided into two sets for comparison.The optimal relay is then selected among the  relays in the premise of the maximum SNR at the destination.Finally, the specific process of the relay selection is listed as follows.

Determination of the Cooperative Relay Schemes.
At first, there are some symbol definitions about the transmission power of the source and relay, respectively, that is,  2 and  2 , as well as the information transmission rate  bit/s.The channel noise is the AWGN with zero mean and variance  0 .Three channel parameters, such as |ℎ  | 2 , |ℎ  | 2 , and |ℎ  | 2 , are the channel gains of the links S-D, S-R i , and R i -D, respectively.They are subjected to the exponential distribution with parameters of 1/  2 , 1/  2 , and 1/  2 .If the relays decode the signals from the source successfully, there will not be any interruption for transmission between source node S and relay node R i .For this case, the mutual information in the transmission is deduced as Equation ( 5) should be larger than  to ensure that the transmission is not interrupted.And it can be transformed as |ℎ  | 2 > (2 2 − 1) 0 / 2 .Thus the threshold value can be set as  2 = (2 2 − 1) 0 / 2 .When |ℎ  | 2 ≥  2 , the relay can decode the signal successfully.So the DF protocol is selected to forward the signal to avoid noise amplification.When |ℎ  | 2 <  2 , the decoding in the relay failed.And the AF protocol is adopted to prevent error propagation.
Therefore, the candidate relays are divided into two sets according to whether successful decoding occurs or not in the relays, where the relays in set Ω DF select the DF scheme to forward the signals in the second slot and others in set Ω AF use the AF scheme.They are expressed as

Optimal Relay Selection.
Since the optimal relay means to the maximized SNR in the destination, there are two steps to obtain it.Firstly, the best relays of   DF and   AF are chosen from the sets Ω DF and Ω AF , respectively.Then, the optimal relay   can be chosen between relay   DF and relay   AF .For the cooperation system with the AF scheme, the destination combines the signals from the source and the relay together by the maximum ratio combination (MRC) mechanism, and the instantaneous SNR at the destination is expressed as where the instantaneous SNR is expressed as Wireless Communications and Mobile Computing 5 For the cooperation system with the DF protocol, the signals from the source and the relay are combined by the MRC scheme, and the instantaneous SNR at the destination is obtained as where the instantaneous SNR from the first slot is Finally, the optimal relay   can be chosen as the larger instantaneous SNR between   DF and   AF .Then it forwards the signal from the source in the corresponding mode.And it is expressed as Meanwhile, the mutual information of the cooperative transmission of the HDAF scheme by the proposed relay selection strategy is where |ℎ  | 2 is the channel gain of link S-R b .

Optimization of Power Allocation in the Relay Selection
The power allocation is optimized to obtain high power efficiency, where the entire power is taken as the constraint condition and the outage probability as the objective function.
Then, the outage probability of the whole cooperation system is deduced analytically.And the Lagrange multiplier method is used to solve optimal power allocation equation.

Deduction of Outage Probability.
Outage probability is defined as the probability of failure in a transmission, which is one of the most used measures to evaluate the entire wireless communications.The transmission interruption occurs when the link capacity can not attain the required user rate.In other words, the mutual information of the transmission channel is smaller than the actual transmission rate.For a single relay network in the ISHDAF scheme, the direct sourcedestination transmission or retransmission is premised on the successful decoding of the received signals in the destination.Hence, the interruption only exists in the cooperative transmission.Based on the analysis in Section 3, the outage probability of the ISHDAF scheme can be deduced as By replacing (3) and ( 4) into (13) where Given the exponential distribution  and  with parameters  1 and  2 , respectively, the PDF of  ( =  + ) is deduced by the integral equation   () = ∫ ∞ −∞   ( − )  (), and it is expressed in [23] as In addition, the probability distribution function  is approximately represented as   () ≈ ( 1 + 2 ) on condition of high SNR, when  = /(1 +  + ) [23].
Based on the above discussion, at high SNRs, the outage probability of the ISHDAF scheme can be calculated as follows: and similar result is obtained as Pr(|ℎ  | 2 ≤  1 ) ≈  0 / ( 1  2  ).According to (16), take  0 /( 1  2  ) as  1 and  0 /( 1  2  ) as  2 ; there is the following deduction: With ( 18) and the descriptions mentioned above, there is Therefore, the outage probability of a single relay ISHDAF cooperative network is expressed as Similarly, the outage probability in the HDAF relay selection strategy is denoted as It is obvious that  HDAF out just lacks the part of "|ℎ  | 2 ≤  1 /2" when compared with  ISHDAF out .Finally, according to the above analyses, the outage probability is deduced as

Optimization of Power Allocation.
Using the Lagrange multiplier method, the optimized power allocation among the source and relay nodes to minimize the outage probability is produced as follows.For the ISHDAF scheme, with entire power as the constraint, as long as the fixed power  with  1 +  1 = , the optimization problem can be denoted as min Let  1 =   ,  1 =   , where   +  = 1.The Lagrange function is established as Take partial derivation of ( 24) with respect to   and   , respectively, and then make them equal to zero; we can get By combining (25) and (26) together, and setting  =   /  , a quadratic equation with respect to variable  is obtained as According to the root of ( 27) and   +   = 1, the optimized solutions of  1 and  1 satisfying (23) are obtained, respectively, as From ( 28) and (29), the powers  1 and  1 of the ISHDAF relay network in the optimized power allocation mainly depend on the channel coefficients of link S-R and link R-D, but not on that of link S-D.
Similarly, the power allocation optimization for the HDAF scheme can be defined as min Wireless Communications and Mobile Computing 7 Finally, the optimized powers  2 and  2 in the above power allocation are resolved as 4.3.Optimal Relay Location.The power allocation depends on the channel coefficients, which are related to the distance between the relay and the source or the destination.To obtain the maximum outage probability gain by the proposed power allocation, an optimal relay location is deduced as follows.
To simplify the analysis of power allocation, we just constrain the situations where the distance between the link S-D and the link S-R-D is approximately equal, especially when the distance is quite large.Otherwise, under the same channel noise variance  0 in the assumed condition, the transmission of the link S-R-D is much worse than that of link S-D, which loses the sense of relay selection.And it has been adopted similarly in [21].Then, given normalization distance of link S-D (or approximate link S-R-D) as  SD = 1, and the distance  of link S-R, there is  SR =  and  RD = 1 − , where 0 <  < 1.When the path loss factor is considered as  = 4, the channel coefficients are obtained as   =  −4 ,   = (1 − ) −4 .Then, for the ISHDAF scheme, the transmit power of the source and relay is presented as Taking the derivation of variable  in (33), it obtains Equation ( 35) is always greater than zero in the interval of 0 <  < 1.So (33) is easily recognized as the monotone increasing function since the derivation of it, (35), is greater than zero.Then,  1 is kept at about 0.5P, when  is less than 0.5, and it tends to be , when  is greater than 0.9.So the transmit power of the source is always larger than that of the relay in the proposed algorithm of the ISHDAF scheme.Substituting (33), (34), and   =  −4 ,   = (1−) −4 into (20), it gets From (36), the systematic outage probability is relatively small in the case that the distance of link R-D is larger than that of link S-R.In other words, the relay node R is relatively close to the destination node D for better outage probability.However, when the relay node is approximately located in the middle between the source and destination node, the entire outage probability is minimal.Simultaneously, a theoretical analysis about the outage probability of the HDAF system just resembles that of the ISHDAF system.But when the relay node is close to the destination node, the outage performance decreases, and the optimal relay location closely approaches to the source node than that of the ISHDAF system.Since the order of (36) is too high to obtain the analytic solution, only numerical results are available and they will be given in the successive simulation related in Section 5.

Diversity Gain.
Given the diversity gain in the proposed ISHDAF scheme, it should be divided into three cases as follows.
First, when |ℎ  | 2 >  1 , the source transmits directly to the destination successfully in the first time slot, and  DT in (1) shows that the signal is transmitted only in one path.So it extracts one diversity gain in the direct transmission.
Second, the direct transmission is failed, but the retransmission is successful in the second time slot, when there is  1 /2 < |ℎ  | 2 ≤  1 .The SNR received by the destination node is twice as straightforward, while the transmission still experiences only one path.Therefore, the diversity gain is still one.
Third, the relay node starts to forward signals in the AF protocol or the DF protocol.In these two cases, the destination node receives signals from two links.So the system achieves two diversity gains in the cooperative transmission by the relay nodes.In addition, for the multirelay selection strategy under the HDAF scheme, it employs DF or AF mode to forward signals adaptively according to the channel status.Because both forward modes are required for R-D transmission, the full diversity gain of 2 is then obtained.
In summary, the proposed ISHDAF scheme obtains much more outage probability performance gain by the direct link retransmission rather than the relay forwarding, when compared with the IHDAF one in [8].In other words, the diversity gain in the ISHDAF scheme is better than that of the IHDAF one, because the overall channel transmission effect (retransmission and then cooperative relay communication) in the former is superior to that (just cooperative relay communication) in the latter.

Simulation Results and Analysis
To validate the proposed power allocation optimization algorithm for the ISHDAF and the HDAF relay selection strategy, two typical kinds of cooperative network are simulated and analyzed.For a single relay network, the outage performances by the proposed HDAF and ISHDAF strategy are compared.Besides, the optimized power allocation (OPA) and the equal power allocation (EPA) algorithms are employed in the two strategies, respectively, for comparison.In addition, for a HDAF multirelay selection network, the outage performances of the whole system with different relay numbers are simulated and compared.And the simulations for the validation of the optimal relay location are also performed in both the HDAF and the ISHDAF single relay network.
The simulation parameters are set as follows.The transmission rate is set as  = 1 bit/s.The node distance is fixed as  SD = 1, where   is the normalized distance between node  and node .All channels are Rayleigh flat fading channels, and  = 4 stands for the path loss factor.The channel noise is an AWGN with zero mean and variance  0 = 1.By the Binary Phase Shift Keying (BPSK) modulation, the results are simulated and shown as follows.
Figure 3 shows the comparison of the outage probability between the OPA and the EPA scheme.They are at both the ISHDAF and the HDAF single relay network, respectively, with distance parameters of  SR = 0.8 and  RD = 0.2.From Figure 3, in the ISHDAF strategy, the OPA scheme achieves a much better outage performance gain over the EPA scheme.And it is also true in the HDAF strategy.Moreover, the ISHDAF strategy has larger gain over the HDAF strategy, when they are under the same power allocation.There are nearly 0.1695 gains for the OPA scheme compared with the EPA scheme in the ISHDAF strategy and about 0.045 gains for the ISHDAF strategy compared with the HDAF strategy employed in the OPA scheme, at a total power of 2 dB.With the increasing of the total power, the outage probability decreases, and the gains become gradually small.The reason is that when the relay node is far from the source, the outage performance of link S-R is poor.So the threshold is decreased too in the OPA scheme, which guarantees the direct transmission or retransmission in link S-D with the ISHDAF strategy.Also, from ( 14) to (18), there is a condition as |ℎ  | 2 ≤  1 /2 for the ISHDAF to calculate the outage probability.So the outage performance of the ISHDAF scheme outperforms that of the HDAF one in the EPA scheme.
The outage performances of different schemes with the distance parameters of  SR = 0.2 and  RD = 0.8 are compared in Figure 4.At both the ISHDAF and the HDAF cooperation relay network, the OPA and EPA scheme have almost the same performance.Since the relay transmission opportunity increased when the relay node approaches the source node, the whole transmission in the ISHDAF scheme is similar to that of the HDAF one.And from (25) to (29), the node power based on the OPA scheme is also similar to that of the EPA scheme.At the same time, the OPA algorithm in the ISHDAF strategy achieves a better gain, when the distance of link S-R is larger than that of link R-D.
There is also a comparison of outage performance between the OPA and the EPA scheme, in the HDAF multirelay selection network.They are simulated with different number of relays, under the distance parameters of  SR = 0.8 and  RD = 0.2 and the results are shown in Figure 5. From Figure 5, the outage probability is reduced with the increased number of the relays.This is because many more numbers of relays result in better channel quality of the best selected relay.It also leads to the increased mutual information in transmission; thus the outage probability of the system reduces correspondingly.In addition, Figure 5 shows that, with the same relay number in the HDAF cooperative system, OPA scheme has a significant outage performance gain than that of the EPA scheme.For instance, at a total power of 2 dB, there are about 0.083 gains for OPA scheme when compared with those of the EPA scheme under 2 relays.Since the declined threshold results in many more opportunities for the DF protocol employed at the relay node, at such relay location, in this case, the DF protocol outperforms the AF protocol similar to that in [24].
To verify the theoretical analysis of the optimal relay location for the proposed algorithm, some simulations are performed in the cooperative single relay network.For the different relay locations, the outage probabilities of the ISHDAF and the HDAF strategies are illustrated in Figure 6, with the fixed total power of 10 dB.From the results, the outage probability is really low when the relay node R is relatively close to the destination node D. It turns out to be the lowest (i.e., best) one for the relay node R at the middle position between the source node S and the destination node D, which is consistent with the theoretical analysis indicated by (32).The most possible reasons mainly rely on the following reasons.When the relay is a little far from the source, the cooperative scheme at the relay performs better under the node power allocation, which is related to the link performance.Moreover, when the relay node is just in the middle between them, the performance of both link S-R and link R-D is good.The whole system can thus obtain maximum benefit in the proper power allocation ratio of the source and the relay under the proposed algorithm.In addition, the simulation shows that the outage probability performance of the ISHDAF scheme is always better than that of the HDAF scheme in the proposed algorithm.

Conclusion
In this paper, an optimized power allocation algorithm is proposed, which mainly employs the two-hop single relay network with ISHDAF scheme and the multirelay selection strategy with HDAF scheme.The optimization of the proposed algorithm is just to minimize the outage probability of system under the constraints of total power of the source and relay nodes.In addition, the proposed scheme can only occupy a small amount of time complexity to obtain the power allocation optimization in a cooperative communication system.In the simulations, the proposed algorithm is applied in the ISHDAF and the HDAF scheme with the well-known three-node models, respectively.Simulation results show that the proposed algorithm can achieve much larger gain by the ISHDAF scheme than that by other ones.Also, for different number of the relay nodes in a cooperative network, the simulation comparisons show that the proposed algorithm by the HDAF relay selection strategy has a significant validity in power allocation.Simultaneously, the optimal relay location by the suggested algorithm is also established for an even better gain over current schemes.Therefore, the proposed optimized power allocation and relay location selection algorithm can be effectively adopted in cooperative IoT relay systems in practice for high power efficiency and good outage probability performance.

Figure 1 :
Figure 1: System model of a single relay communication.

Figure 2 :
Figure 2: System model of the multiple relay communication.

Figure 3 :
Figure 3: Outage probabilities between the OPA and the EPA in different forwarding strategies.

Figure 4 :
Figure 4: Outage probabilities between the OPA and the EPA under the specific relay location.

Figure 5 :
Figure 5: Outage probabilities among different number of the relays in the HDAF scheme.

Figure 6 :
Figure 6: Outage probabilities among different relay locations in the OPA scheme.
0 and that of the second slot is 2 DF =  2 |ℎ  | 2 /  0 +  2 |ℎ  | 2 / 0 .If all relays in set Ω DF can succeed in decoding the signals, the instantaneous SNR at the destination is  2 DF .Then the optimal relay   DF is represented as