Introduction
With the increasing of mobile devices and mobile data traffic, cellular networks are facing challenging issues for high data rate. Device-to-Device (D2D) communications share cellular resources, which have been considered as a promising technology to alleviate the challenging issues [1]. In D2D communications, D2D User Equipments (DUEs) communicate with each other directly instead of the interaction of the Base Stations (BSs) [2]. The advantage is that communications can be possible in poorly covered areas, and the spectrum efficiency and energy efficiency can be improved [3], [4].
Due to the battery lifetime budget of DUEs, the system throughput is limited. In order to prolongate the lifetime of D2D heterogeneous networks, Energy Harvesting (EH) has been applied to D2D heterogeneous networks, which can further improve the spectrum efficiency of D2D heterogeneous networks by using the EH capability to recharge DUEs [5]. DUEs first harvest energy from various kinds of energy sources, and then use the harvested energy multiplex the spectrum resource for D2D communication in EH-based D2D heterogeneous networks (EH-DHNs).
The strategies of mode selection and resource allocation are considered as an efficient way to improve the spectrum efficiency in D2D communication. However, owing to the DUEs with EH capability, mode selection and resource allocation are facing new challenging issues in EH-DHNs.
There are optimized couplings between the amount of the harvested energy or the duration of EH and spectrum efficiency [6], which means that, even if more energy is harvested, higher spectrum efficient is not necessarily obtained. If the DUEs are exhausted or with very low energy, the DUEs could not multiplex the spectrum resources of the CUEs. For the purpose of maximizing the spectrum efficiency and guaranteeing that the DUEs can be supplied with sufficient energy for communication in EH-DHNs, the optimal transmission time duration and the EH time duration for D2D communication should be obtained. Therefore, the joint problem of mode selection and resource allocation with the goal of maximizing spectrum efficiency in EH-DHNs is investigated in this paper. The resource allocation problem involves EH time duration allocation of DUEs, transmission power allocation and spectrum resource allocation, and these three factors are inter-coupled with each other.
In recent years, various DUEs mode selection and resource allocation schemes and algorithms for D2D communication have been proposed for different purposes [7].
From the point of view of interference management, The joint problem of power control and channel allocation in D2D cellular network is studied. Two distributed power control algorithms for link establishment and a distributed adaptive power control scheme for link maintenance are proposed in [8]. In [9], the power control and channel allocation problem with the scenario of D2D links sharing resources with multiple cellular users is studied, the mathematical tool of stochastic geometry is used to solve the problem. In [10], the joint of physical-layer secure transmission and resource allocation in D2D communications is studied. The objective is to maximize system sum rate in a socially aware D2D network, and each D2D pair can access multiple CUEs’ resources. Moreover, the multiple D2D pairs can share single CUE resources in the scenario of multiple eavesdroppers. In [11], underlaying a non-orthogonal multiple access (NOMA) cellular network, the power control and channel allocation problem in D2D communications is studied. The goal is to maximize the sum rate of D2D pairs while guaranteeing the minimum rate requirements of NOMA-based cellular users. In [12], in the scenario of a cell with one D2D pair and multiple CUs, under the condition of partial complete channel state information, a joint mode selection, user scheduling, and rate adaptation policy problem is investigated. In [13], the joint problem of mode selection and resource allocation for D2D-enabled NOMA cellular networks is investigated. In order to maximize the system sum rate while meeting the successive interference cancellation (SIC) decoding constraint, a joint D2D mode selection and resource allocation scheme with interlay mode was proposed. In [14], a SINR-aware mode selection analytical framework based on the markov-chain theory is developed for single-user case. A joint MS, resource allocation (RA), and scheduling optimization problem is investigated for multi-user communication scenario.
The common point of above existing mode selection and resource allocation algorithms in D2D networks is that the EH function of DUE is not considered. The optimal coupling relationship among the spectrum efficiency, the EH time and the transmission time are not considered as well. The mode selection and resource allocation algorithms and schemes without considering the EH capability are not suit for EH-DHNs owing to the new challenging introduced by EH technology. Consequently, several research works have been done in this area so far.
For instance, in [15], the joint problem of the EH time allocation, spectrum resource allocation and transmission power allocation is investigated with the aim of maximizing the energy efficiency in EH-DHNs. An iterative algorithm based on Lagrangian multiplier is proposed to solve the formulated mixed-integer nonlinear constraints optimization problem. However, the mode selection is not considered. In [16], considering of DUEs RF harvesting energy for relay transmissions in machine-type communication, the spectral efficiency of energy harvesting-based D2D-assisted MTC communications using stochastic geometry is analyzed. In [17], with the aim of maximizing the sum rate of systems, the problem of D2D-CU matching, transmission time and power allocation in EH-DHNs is investigated. However, the mode selection is not considered as well. In [18], a joint problem of subcarrier assignment and power allocation in EH-DHNs with the goal of maximizing the overall sum rate is investigated. The sum rate is the sum of the data rate of DUEs and CUEs. In [19], the random spectrum access policy and prioritized spectrum access policy are investigate in the cognitive and energy harvesting D2D networks. The outage probability for D2D and cellular users is evaluated using stochastic geometry tool. In [20], the channel allocation and power allocation problem with the goal of maximization sum-rate of CUEs and DUEs in EH-powered D2D cellular network is investigated. In [21], the energy harvesting process of a spatial random EH-D2D network is analyzed. A Markov chain model for success probability of the proposed four schemes is developed. In [22], the EH time and power allocation problem with the objective of maximizing the throughput in unmanned aerial vehicle-assisted D2D networks is studied. In [23], with the goal of maximizing the data rate of the cognitive spectrum sharing-based D2D communication system, a joint time division and power splitting-based information and energy cooperation transmission scheme is studied. In [24], with the goal of maximizing the sum rate, the joint problem of resource allocation and power allocation in energy harvesting relay-aided D2D networks is investigated.
The spectrum efficiency and energy efficiency are very important goals for fog and edge computing [25]–[29], cognitive radio [3], [30], internet of things [31]–[37] and wireless powered communication networks [38], [39]. However, with the objective of maximizing the spectrum efficiency, the joint problem of mode selection and resource allocation in EH-DHNs has not been investigated yet. The contributions of our work can be summarized as follows.
We considered the spectrum efficiency mode selection and resource allocation problem in the uplink EH-DHNs.
We formulated the joint problem of mode selection, EH time duration allocation of DUEs, transmission power allocation and spectrum resource allocation with the objective of maximizing the system throughput.
We proposed a Mode Selection and Resource Allocation algorithm (MSRA) based on convex optimization theory and greedy strategy to solve the formulated problem.
The rest of this paper is organized as follows. Section II and Section III present the system model and problem formulation, respectively. In Section IV, the joint optimization algorithm including the equivalent transformation and the detail of the proposed algorithm is discussed. Section V shows the performance of the proposed algorithm. Finally, we conclude our work in Section VI.
System Model
We consider an uplink D2D heterogeneous network scenario, the coverage radius of the network is
The system model is shown in Fig. 1. In order to simplify the description of the problem, we assume that each cellular user
Let \begin{equation*} \sum \limits _{i=1}^{N_{c}} {\rho _{i,j}^{t}} \le 1 \quad \forall t\in M, ~j\in D\tag{1}\end{equation*}
Meanwhile, we assume that any spectrum resource block can only be reused by one D2D link at most, formulated as \begin{equation*} \sum \limits _{j=1}^{N_{d}} {\rho _{i,j}^{t}} \le 1 \quad \forall t\in M, ~i\in CH\tag{2}\end{equation*}
Let \begin{equation*} V_{j}^{t} \in Poisson\left ({\lambda }\right)\quad \forall t\in M, ~j\in D\tag{3}\end{equation*}
We define \begin{equation*} E_{j}^{t} =\rho _{i,j}^{t} V_{j}^{t} \left ({{\tau _{t} -\theta _{i,j}^{t}} }\right)\quad \forall t\in M, ~j\in D, ~i\in CH\tag{4}\end{equation*}
\begin{equation*} x_{j}^{t} = \begin{cases} 1 & \textrm {D2D Mode} \\ 0 & \textrm {Cellular Mode} \\ \end{cases} \quad \forall t\in M, ~j\in D\tag{5}\end{equation*}
We denote
When the \begin{equation*} R_{i}^{t}\!=\! B\log _{2} \left ({\!{1+\frac {p_{i}^{t} \left |{ {h_{i}} }\right |^{-3}}{N_{0} B+p_{i,j}^{t} \left |{ {g_{j}} }\right |^{-4}}} \!}\right) \quad \forall t\!\in \! M, ~i\!\in \! CH\tag{6}\end{equation*}
When the D2D communication mode is used by the \begin{align*} R_{j,D}^{t}\!=\!\sum \limits _{i=1}^{N_{c}} {\rho _{i,j}^{t} B\log _{2} \left ({\!{1\!+\!\frac {p_{i,j}^{t} \left |{ d }\right |^{-3}}{N_{0} B\!+\!p_{i}^{t} \left |{ {h_{i,j}} }\right |^{-4}}}\! }\right)} \quad \forall t\!\in \! M, ~j\!\in \! D\!\! \\{}\tag{7}\end{align*}
However, when the cellular communication mode is used by the \begin{align*} R_{j,C}^{t} \!=\!\sum \limits _{i=1}^{N_{c}} {\rho _{i,j}^{t} B\log _{2} \left ({\!{1\!+\!\frac {p_{i,j}^{t} \left |{ {g_{j}} }\right |^{-3}}{N_{0} B+p_{i}^{t} \left |{ {h_{i}} }\right |^{-4}}}\! }\right)} \quad \forall t\!\in \! M, ~j\!\in \! D\!\!\!\! \\{}\tag{8}\end{align*}
Proble Formulation
We study the joint problem of spectrum resource block allocation, power control, mode selection and transmission time allocation in energy harvesting D2D heterogeneous networks. The goal is to maximize the throughput of all D2D links. We denote \begin{equation*} R^{t}=\sum \limits _{j=1}^{N_{d}} {\left ({{x_{j}^{t} R_{j,C}^{t} +\left ({{1-x_{j}^{t}} }\right)R_{j,D}^{t}} }\right)}\quad \forall t\in M\tag{9}\end{equation*}
\begin{equation*} \Re =\sum \limits _{t=1}^{M} {R^{t}}\tag{10}\end{equation*}
The joint optimization problem of maximizing the total throughput of all D2D links within the time \begin{align*}&P1\max \limits _{\rho _{i,j}^{t},x_{j}^{t},p_{i,j}^{t},\theta _{i,j}^{t},p_{i}^{t}} \Re \tag{11a}\\&\qquad \quad ~\mathrm {Subject~to} \\&\hphantom {\qquad \quad ~}R_{i}^{t} =B\log _{2} \left ({{1+\frac {p_{i}^{t} \left |{ {h_{i}} }\right |^{-3}}{N_{0} B+p_{i,j}^{t} \left |{ {g_{j}} }\right |^{-4}}} }\right)\ge \delta _{i}^{\min } \\&\hphantom {\qquad \quad ~}\forall t\in M,\quad i\in CH\tag{11b}\\&\hphantom {\qquad \quad ~}\sum \limits _{i=1}^{N_{c}} {\rho _{i,j}^{t}} \le 1\quad \forall t\in M, ~j\in D\tag{11c}\\&\hphantom {\qquad \quad ~}\sum \limits _{j=1}^{N_{d}} {\rho _{i,j}^{t}} \le 1\quad \forall t\in M, ~i\in CH\tag{11d}\\&\hphantom {\qquad \quad ~}\sum \limits _{\tau =1}^{t} {\sum \limits _{i=1}^{Nc} {\rho _{i,j}^{\tau } p_{i,j}^{\tau } \theta _{i,j}^{\tau }}} \le E_{j}^{0} +\sum \limits _{\tau =1}^{t-1} {E_{j}^{\tau }} \\&\hphantom {\qquad \quad ~}\forall t\in M,\quad j\in D, ~i\in CH\tag{11e}\\&\hphantom {\qquad \quad ~}\sum \limits _{i=1}^{N_{c}} {\rho _{i,j}^{t} \theta _{i,j}^{t}} \le \tau _{t}\quad \forall t\!\in \! M,~j\!\in \! D,~i\!\in \! CH\tag{11f}\\&\hphantom {\qquad \quad ~}x_{j}^{t} \in \left \{{{0,1} }\right \},\quad \rho _{i,j}^{t} \in \left \{{{0,1} }\right \}, ~p_{i}^{t} \ge 0, p_{i,j}^{t} \ge 0, \\&\hphantom {\qquad \quad ~}0\le \theta _{i,j}^{t} \le \tau _{t}\quad \forall t\in M, ~i\in CH, ~j\in D,~i\in C \\{}\tag{11g}\end{align*}
Equation (11b) indicates that the QoS constraints of each cellular user should be greater than
Joint Optimization Algorithm
A. Equivalent Transformation
Since \begin{equation*} p_{i}^{t} \ge \left |{ {h_{i}} }\right |^{3} z_{i} \left ({{p_{i,j}^{t} \left |{ {g_{j}} }\right |^{-4}+N_{0} B} }\right)\tag{12}\end{equation*}
Since the objective function (11a) is monotonically decreasing in \begin{equation*} p_{i}^{t\ast }=\left |{ {h_{i}} }\right |^{3} z_{i} \left ({{p_{i,j}^{t} \left |{ {g_{j}} }\right |^{-4}+N_{0} B} }\right)\tag{13}\end{equation*}
We can modify the objective function (11a) from equation (13) by substituting \begin{align*}&\Re ^{\ast }=\max \limits _{X} \sum \limits _{t=1}^{M} {R^{t}}\tag{14a}\\&\qquad \quad \mathrm {Subject~to} \\&\hphantom {\qquad \quad }\sum \limits _{i=1}^{N_{c}} {\rho _{i,j}^{t}} \le 1\quad \forall t\in M,~j\in D\tag{14b}\\&\hphantom {\qquad \quad }\sum \limits _{j=1}^{N_{d}} {\rho _{i,j}^{t}} \le 1\quad \forall t\in M,~i\in CH\tag{14c}\\&\hphantom {\qquad \quad }\sum \limits _{\tau =1}^{t} {\sum \limits _{i=1}^{Nc} {\rho _{i,j}^{\tau } p_{i,j}^{\tau } \theta _{i,j}^{\tau }}} \le E_{j}^{0} +\sum \limits _{\tau =1}^{t-1} {E_{j}^{t}} \\&\hphantom {\qquad \quad } \forall t\in M,\quad j\in D,~i\in CH\tag{14d}\\&\hphantom {\qquad \quad }\sum \limits _{i=1}^{N_{c}} {\rho _{i,j}^{t} \theta _{i,j}^{t}} \le \tau _{t}\quad \forall t \!\in \! M,~j \! \in \! D,~i\!\in \! CH\tag{14e}\\&\hphantom {\qquad \quad }x_{j}^{t} \in \left \{{{0,1} }\right \}, \rho _{i,j}^{t} \in \left \{{{0,1} }\right \}, p_{i}^{t} \ge 0, p_{i,j}^{t} \ge 0, \\&\hphantom {\qquad \quad }0\le \theta _{i,j}^{t} \le \tau _{t}\quad \forall t\in M, ~i\in CH, ~j\in D, ~i\in C \\{}\tag{14f}\end{align*}
\begin{equation*} \begin{cases} \alpha _{i} =N_{0} B\left ({{1+\left |{ {h_{i}} }\right |^{-1} z_{i}} }\right), \\ u_{i,j} =\left |{ {h_{i}} }\right |^{-1} z_{i} \left |{ {g_{j}} }\right |^{-4}, \\ e_{i,j} =\left |{ {h_{i}} }\right |^{-1}\left |{ {g_{j}} }\right |^{-4} z_{i} +\left |{ {g_{j}} }\right |^{-3}, \\ \end{cases} \begin{cases} k_{i,j} = N_{0} B\\ \left ({{1\!+\!\left |{ {h_{i}} }\right |^{3} \!z_{i} \left |{ {h_{i,j} } }\right |^{-4}} }\right), \\ s_{i,j} = \left |{ {h_{i}} }\right |^{3} \!z_{i} \left |{ {h_{i,j}} }\right |^{-4} \\ \left |{ {g_{j}} }\right |^{-4}, \\ m_{i,j} = \left |{ d }\right |^{-3}\\ \!+\left |{ {h_{i}} }\right |^{3}\! z_{i}\! \left |{ {h_{i,j}} }\right |^{-4}\!\left |{ {g_{j}} }\right |^{-4}\!. \\ \end{cases}\end{equation*}
It can be seen that in question (14), the optimization variable is reduced to
Theorem 1:
Proof:
Please refer to Appendix A.
In order to solve the problem, we introduce the variables \begin{align*}&\max \limits _{X} \sum \limits _{t=1}^{M} \sum \limits _{j=1}^{N_{d}} \sum \limits _{i=1}^{N_{c}} w_{j}^{t} \rho _{i,j}^{t} B \\&\qquad \times \,\left [{ {\begin{array}{l} \dfrac {\textrm {X}_{i,j}^{t}}{\rho _{i,j}^{t}}\log _{2} \left ({{\dfrac {\alpha _{i} +e_{i,j} \frac {\Upsilon _{i,j}^{t}}{\rho _{i,j}^{t}}}{\alpha _{i} +u_{i,j} \frac {\Upsilon _{i,j}^{t}}{\rho _{i,j}^{t}}}} }\right) \\ +\left ({{1-\dfrac {\textrm {X}_{i,j}^{t}}{\rho _{i,j}^{t}}} }\right)\log _{2} \left ({{\dfrac {k_{i,j} +m_{i,j} \frac {\Upsilon _{i,j}^{t}}{\rho _{i,j}^{t}}}{k_{i,j} +s_{i,j} \frac {\Upsilon _{i,j}^{t}}{\rho _{i,j}^{t}}}} }\right) \\ \end{array}} }\right] \qquad \quad \tag{15a}\\&\mathrm {Subject~to} \\&\hphantom {\mathrm {Subject~to}}\sum \limits _{i=1}^{N_{c}} {\rho _{i,j}^{t}} \le 1\quad \forall t\in M, ~j\in D\tag{15b}\\&\hphantom {\mathrm {Subject~to}}\sum \limits _{j=1}^{N_{d}} {\rho _{i,j}^{t}} \le 1\quad \forall t\in M, ~i\in CH\tag{15c}\\&\hphantom {\mathrm {Subject~to}}\sum \limits _{\tau =1}^{t} {\sum \limits _{i=1}^{Nc} {\Upsilon _{i,j}^{t} \theta _{i,j}^{\tau }}} \le E_{j}^{0} +\sum \limits _{\tau =1}^{t-1} {E_{j}^{t}} \\&\hphantom {\mathrm {Subject~to}}\forall t\in M,\quad j\in D, ~i\in CH\tag{15d}\\&\hphantom {\mathrm {Subject~to}}\sum \limits _{i=1}^{N_{c}} {\rho _{i,j}^{t} \theta _{i,j}^{t}} \le \tau _{t}\quad \forall t\in M,~j\in D,~i\in CH \\{}\tag{15e}\end{align*}
Theorem 2:
The objective function (15a) is a convex function on the variable
Proof:
Please refer to Appendix B.
Similar to Theorem 2, all constraints in the transformed problem (15) are jointly convex, so the original problem (14) is a jointly convex optimization problem.
B. Proposed Algorithm
Since the transformed problem (14) is a jointly convex problem, the convex optimization theory can be used to solve the problem. According to the objective function (14a) and the constraints (14b), (14c), (14d), (14e), we can obtain its Lagrangian equation, which is given by \begin{align*} L\left ({{\textrm {X},\Lambda } }\right)=&-Max\sum \limits _{t=1}^{M} {\sum \limits _{j=1}^{N_{d}} {\sum \limits _{i=1}^{N_{c}} {w_{j}^{t}}}} B\rho _{i,j}^{t} \\&\times \,\left [{ {\begin{array}{l} x_{j}^{t} \log _{2} \left ({{\dfrac {\alpha _{i} +e_{i,j} \times p_{i,j}^{\tau }}{\alpha _{i} +u_{i,j} \times p_{i,j}^{\tau }}} }\right) \\ + \left ({{1-x_{j}^{t}} }\right)\log _{2} \left ({{\dfrac {k_{i,j} +m_{i,j} \times p_{i,j}^{\tau }}{k_{i,j} +s_{i,j} \times p_{i,j}^{\tau }}} }\right) \\ \end{array}} }\right] \\&+ \sum \limits _{t=1}^{M} {\sum \limits _{i=1}^{N_{c}} {\lambda _{1,i}^{t}} \left ({{\sum \limits _{j=1}^{N_{d}} {\rho _{i,j}^{t}} -1} }\right)} \\&+ \sum \limits _{t=1}^{M} {\sum \limits _{j=1}^{N_{d}} {\lambda _{2,j}^{t}} \left ({{\sum \limits _{i=1}^{N_{c}} {\rho _{i,j}^{t}} -1} }\right)} \\&+\sum \limits _{t=1}^{M} {\sum \limits _{j=1}^{N_{d}} {\lambda _{3,j}^{t}} \left ({\! {\sum \limits _{\tau =1}^{t} {\sum \limits _{i\in CH} {\rho _{i,j}^{\tau } p_{i,j}^{\tau } \theta _{i,j}^{\tau }}} \!-\!E_{j}^{0} \!-\!\!\sum \limits _{\tau =1}^{t-1} {E_{j}^{\tau }}}\! }\right)} \\&+\sum \limits _{t=1}^{M} {\sum \limits _{j=1}^{N_{d}} {\lambda _{4,j}^{t}}} \left ({{\sum \limits _{i\in CH} {\rho _{i,j}^{t} \theta _{i,j}^{t}} -\tau _{t}} }\right)\tag{16}\end{align*}
\begin{equation*} D\left ({\Lambda }\right)=\min \limits _{\textrm {X}} L\left ({{\textrm {X},\Lambda } }\right)\tag{17}\end{equation*}
We assume that the \begin{equation*} p_{i,j}^{t\ast }=\max \left [{ {0,\frac {\lambda _{4,j}^{t}}{\lambda _{3,j}^{t}}} }\right]\tag{18}\end{equation*}
According to the constraints (14b) and (14c), each D2D link can only multiplex one CUE spectrum resource block at most in the same time slot, and a CUE spectrum resource block can only be reused by a D2D link at most in the same time slot. At the same time, since the variables \begin{equation*} \rho _{i,j}^{t\ast }= \begin{cases} 1, & \left ({{i,j} }\right)=\mathop {\arg \max (\xi _{i,j}^{t})}\limits _{i\in SET\_{}CH,j\in SET\rho \_{}D} \\ 0, & otherwise \\ \end{cases}\quad \forall t\in M\tag{19}\end{equation*}
The set of all the available channels for D2D link multiplexing is \begin{equation*} \xi _{i,j}^{t}\!=\!\max \left ({{\log _{2} \frac {\alpha _{i} \!+\! e_{i,j} \times p_{i,j}^{t}}{\alpha _{i} \!+\! u_{i,j} \!\times \! p_{i,j}^{t}},\log _{2} \frac {k_{i,j} \!+\! m_{i,j} \!\times \! p_{i,j}^{t}}{k_{i,j} +s_{i,j} \!\times \! p_{i,j}^{t}}} }\right)\tag{20}\end{equation*}
Similarly, the closed-form expression of the variable \begin{equation*} x_{j}^{t\ast }\!=\! \begin{cases} 1, & \rho _{i,j}^{t} \vartheta _{j}^{t} \!>\!0 \\ 0, & otherwise \\ \end{cases}\quad \forall t\!\in \! M, ~i\!\in \! CH,~j\!\in \! SET_{x} \_{}D\tag{21}\end{equation*}
\begin{equation*} \vartheta _{j}^{t} =\log _{2} \frac {\alpha _{i} +e_{i,j} \times p_{i,j}^{t}}{\alpha _{i} +u_{i,j} \times p_{i,j}^{t}}-\log _{2} \frac {k_{i,j} +m_{i,j} \times p_{i,j}^{t}}{k_{i,j} +s_{i,j} \times p_{i,j}^{t}}\tag{22}\end{equation*}
After obtaining the D2D links transmission power \begin{equation*} \theta _{i,j}^{t} =\frac {w_{j}^{t} B\left [{ {x_{j}^{t} \left ({{g_{i,j}^{t}} }\right)^{\prime }+\left ({{1-x_{j}^{t}} }\right)\left ({{h_{i,j}^{t}} }\right)^{\prime }} }\right]}{\lambda _{3,j}^{t}}\tag{23}\end{equation*}
\begin{align*} \left ({{g_{i,j}^{t}} }\right)^{\prime }=&\frac {\partial }{\partial p_{i,j}^{t}}\left ({{\log _{2} \frac {\alpha _{i} +e_{i,j} \times p_{i,j}^{t}}{\alpha _{i} +u_{i,j} \times p_{i,j}^{t}}} }\right)\tag{24}\\ \left ({{h_{i,j}^{t}} }\right)^{\prime }=&\frac {\partial }{\partial p_{i,j}^{t}}\left ({{\log _{2} \frac {k_{i,j} +m_{i,j} \times p_{i,j}^{t}}{k_{i,j} +s_{i,j} \times p_{i,j}^{t}}} }\right)\tag{25}\end{align*}
The constraint (14f) will be satisfied during the problem solving steps. The remaining energy of the \begin{align*}&\hspace {-0.5pc}F_{3,j}^{t} =E_{j}^{0} +\sum \limits _{\tau =1}^{t-1} {E_{j}^{\tau }} -\sum \limits _{\tau =1}^{t} {\sum \limits _{i\in CH} {\rho _{i,j}^{\tau } p_{i,j}^{\tau } \theta _{i,j}^{\tau }}} \ge 0 \\&\qquad \qquad \qquad \qquad \qquad ~ \quad {t\in M,\quad j\in D,~i\in CH}\tag{26}\end{align*}
The remaining energy
The energy harvesting time of the \begin{equation*} F_{4,j}^{t} \!=\!\tau _{t} \!-\!\sum \limits _{i\in CH} {\rho _{i,j}^{t} \theta _{i,j}^{t}} \ge 0 \quad t\in M,~j\in D,~i\in CH\tag{27}\end{equation*}
The energy harvesting time
Due to the Lagrangian dual problem, the dual variable \begin{equation*} \Lambda _{m,k+1} ={\begin{cases} \Lambda _{m=1,k+1} =\left [{ {{\begin{array}{c} {\lambda _{3,j,k+1}^{t}} \\ {\lambda _{4,j,k+1}^{t}} \\ \end{array}}} }\right]\\ =\left [{ {{\begin{array}{cc} {1+\beta _{j,k}} & 0 \\ 0 & {1+\beta _{j,k}} \\ \end{array}}} }\right]\left [{ {{\begin{array}{c} {\lambda _{3,j,k}^{t}} \\ {\lambda _{4,j,k}^{t}} \\ \end{array}}} }\right] \\ \Lambda _{m=2,k+1} =\left [{ {{\begin{array}{c} {\lambda _{3,j,k+1}^{t}} \\ {\lambda _{4,j,k+1}^{t}} \\ \end{array}}} }\right]\\ =\left [{ {{\begin{array}{cc} {1+\beta _{j,k}} & 0 \\ 0 & {\beta _{j,k})} \\ \end{array}}} }\right]\left [{ {{\begin{array}{c} {\lambda _{3,j,k}^{t}} \\ {\lambda _{4,j,k}^{t}} \\ \end{array}}} }\right] \\ \Lambda _{m=3,k+1} \\ =\left [{ {{\begin{array}{c} {\lambda _{3,j,k+1}^{t}} \\ {\lambda _{4,j,k+1}^{t}} \\ \end{array}}} }\right]\\ =\left [{ {{\begin{array}{cc} {\beta _{j,k}} & 0 \\ 0 & {1+\beta _{j,k})} \\ \end{array}}} }\right]\left [{ {{\begin{array}{c} {\lambda _{3,j,k}^{t}} \\ {\lambda _{4,j,k}^{t}} \\ \end{array}}} }\right] \\ \Lambda _{m=4,k+1} \\ =\left [{ {{\begin{array}{c} {\lambda _{3,j,k+1}^{t}} \\ {\lambda _{4,j,k+1}^{t}} \\ \end{array}}} }\right]\\ =\left [{ {{\begin{array}{cc} {\beta _{j,k}} & 0 \\ 0 & {\beta _{j,k})} \\ \end{array}}} }\right]\left [{ {{\begin{array}{c} {\lambda _{3,j,k}^{t}} \\ {\lambda _{4,j,k}^{t}} \\ \end{array}}} }\right] \\ \end{cases}}\tag{28}\end{equation*}
\begin{align*}&(F_{3,j,k+1}^{t,m} >0\vert \vert (F_{3,j,k+1}^{t,m} >F_{3,j,k}^{t,m})) \\[8pt]&\& \& (F_{4,j,k+1}^{t,m} >0\vert \vert (F_{4,j,k+1}^{t,m} >F_{4,j,k}^{t,m})) \\[8pt]&\& \& (F_{4,j,k+1}^{t,m} \le \tau _{t})\tag{29}\end{align*}
We always have to ensure that equations (26) and (27) are satisfied for each link in any time slot. If
Algorithm 1 Finding Interior Point Algorithm
while
if ((
Calculate Eq. (28)
if (the
else
end if
else if(
end if
end while
After the Interior point is obtained, we start to find the optimal value. Since (14a) is convex, the feasible falling direction detection method and the variable step size is used to solve the problem. Since the inner point has been found, the objective function is a concave function. In order to maximize the throughput, the direction in which the objective function increases is the feasible iteration direction. We set the convergence condition of the optimization iteration as:\begin{equation*} \left |{ {\Re _{n+1}^{t} -\Re _{n}^{t}} }\right |< \varepsilon _{2}\tag{30}\end{equation*}
\begin{align*} \Lambda _{n+1,m} =\begin{cases} \Lambda _{n+1,m=1} =\left [{ {{\begin{array}{c} {\lambda _{3,j,n+1}^{t}} \\[5pt] {\lambda _{4,j,n+1}^{t}} \\[5pt] \end{array}}} }\right]=\left [{ {{\begin{array}{c} {\lambda _{3,j,n}^{t} +step_{j,n}} \\[5pt] {\lambda _{4,j,n}^{t} +step_{j,n}} \\[5pt] \end{array}}} }\right] \\[0.8pc] \Lambda _{n+1,m=2} =\left [{ {{\begin{array}{c} {\lambda _{3,j,n+1}^{t}} \\[5pt] {\lambda _{4,j,n+1}^{t}} \\[5pt] \end{array}}} }\right]=\left [{ {{\begin{array}{c} {\lambda _{3,j,n}^{t} -step_{j,n}} \\[5pt] {\lambda _{4,j,n}^{t} -step_{j,n}} \\[5pt] \end{array}}} }\right] \\[0.8pc] \Lambda _{n+1,m=3} =\left [{ {{\begin{array}{c} {\lambda _{3,j,n+1}^{t}} \\[5pt] {\lambda _{4,j,n+1}^{t}} \\[5pt] \end{array}}} }\right]=\left [{ {{\begin{array}{c} {\lambda _{3,j,n}^{t} +step_{j,n}} \\ {\lambda _{4,j,n}^{t} -step_{j,n}} \\ \end{array}}} }\right] \\[0.8pc] \Lambda _{n+1,m=4} =\left [{ {{\begin{array}{c} {\lambda _{3,j,n+1}^{t}} \\ {\lambda _{4,j,n+1}^{t}} \\ \end{array}}} }\right]=\left [{ {{\begin{array}{c} {\lambda _{3,j,n}^{t} -step_{j,n}} \\ {\lambda _{4,j,n}^{t} +step_{j,n}} \\ \end{array}}} }\right] \\ \end{cases}\!\!\!\!\!\!\!\!\!\! \\{}\tag{31}\end{align*}
After Eq.(31) is calculated, the corresponding
Algorithm 2 Mode Selection and Resource Allocation algorithm
call Algorithm 1;
while
if
Calculate Eq. (31), and
if (
else if(
calculate
end if
j=j+1;
else
calculate
if
else
call Algorithm 1;
end if
end if
end while
Simulation Results
A. Parameter Settings
As shown in Figure.1, the basic parameters of the generated scenario are shown in Table 1.
We will analyze the convergence of the proposed MSRA algorithm firstly. We will compare the system throughput with different number of D2D devices
B. Convergence Analysis
In order to analyze the convergence of the proposed algorithm, we set up four groups of different parameters for comparison experiments, and compare and analyze the convergence energy of the MSRA algorithm. The same parameters for four group simulation are that D2D device pair distance
We can see from Figure 2. In the case of
C. System Throughput With Different D2D Distance
In this section, the system throughput with different D2D distance are compared, and the proposed MSRA and the MSRA-E algorithm are compared as well. The simulation results are in Figure 3 and Figure 4.
Figure 3 and Figure 4 plot the system throughput with different D2D distances. The average energy arrival rate is
D. System Throughput With Different QoS
Figure 5 and Figure 6 compare the system throughput with different QoS thresholds. The average energy arrival rate is
E. System Throughput With Different Number of Channels
Figure 7 and Figure 8 illustrate the system throughput with different number of channels. The D2D device distance is
F. System Throughput With Different Number of DUE
Figure 9 and Figure 10 show the system throughput with different number of D2D links. The average energy arrival rate is
G. System Throughput With Different Energy Arrival Rate
Figure 11 and Figure 12 compare the system throughput with different energy arrival rates. The D2D device distance is
When QoS=12bps/Hz, the higher system throughput are obtained by MSRA and MSRA-E with the increasing of the energy arrival rates. When QoS=20bps/Hz, the higher system throughput obtained by MSRA increases very slightly all the time. When QoS=28bps/Hz, the system throughput is not changed at all. Figure 11 and Figure 12 show that the higher system throughput can be obtained with shorter D2D device distance (
Conclusion
In this paper, we investigated the joint problem of mode selection and resource allocation in EH-DHN. We formulated a maximizing system throughput problem, which is a mixed-integer optimization problem. The energy harvesting constraint and the quality of service of CUEs are considered. In order to handle the formulated problem. We proposed a Mode Selection and Resource Allocation algorithm (MSRA) based on Lagrangian dual decomposition. In order to illustrate the advantage of the MSRA algorithm, we compared it with other algorithms. We also analyzed the convergence of the MSRA and the performance with different system configurations on system throughput. Simulation results show that the MSRA algorithm can improve system throughput effectively.
Appendix
Appendix
Proof of the Theorem 1
First, according to OF (14a), we define the function \begin{align*}R\left ({{p,\rho,x} }\right)=&\rho B\Biggl [{ x\log _{2} \left ({{\frac {\alpha +e\times p}{\alpha +u\times p}} }\right)} \\&\qquad \quad {{+\,\left ({{1-x} }\right)\log _{2} \left ({{\frac {k+m\times p}{k+s\times p}} }\right) }\Biggr ]}\tag{32}\end{align*}
Eq. (32) is a multivariate function about variables \begin{align*}&\hspace {-0.5pc} R_{1} =\frac {1}{2}\left [{ {R(p_{1},x_{1})+R(p_{2},x_{2})} }\right] \\&\qquad \qquad \qquad \qquad {\le R\left ({{\frac {p_{1} +p_{2}}{2},\frac {x_{1} +x_{2}}{2}} }\right)=R_{2}}\tag{33}\end{align*}
First of all, we take two points \begin{align*}&\hspace {-0.5pc} R_{1} \!=\!\frac {\rho B}{2} \\&\times \,\left [{\!\! {\begin{array}{l} x_{1} \log _{2} \left ({{\dfrac {\alpha \!+\!e\!\times \! p_{1}}{\alpha \!+\!u\!\times \! p_{1}}} }\right)\!+\!\left ({{1\!-\!x_{1}} }\right)\log _{2} \left ({{\dfrac {k\!+\!m\!\times \! p_{1}}{k+s\!\times \! p_{1}}} }\right) \\ +x_{2} \log _{2} \left ({{\dfrac {\alpha \!+\!e\times p_{2}}{\alpha \!+\!u\!\times \! p_{2}}} }\right)\!+\!\left ({{1\!-\!x_{2}} }\right)\log _{2} \left ({{\dfrac {k\!+\!m\!\times \! p_{2}}{k\!+\!s\!\times \! p_{2}}} }\right) \\ \end{array}}\!\! }\right] \\{}\tag{34}\end{align*}
The right side of inequality is given by \begin{align*} R_{2}\! =\!\frac {\rho B}{2}\left \{{\!\!{\begin{array}{c} \left ({{x_{1} +x_{2}} }\right)\log _{2} \left ({{\dfrac {2\alpha +e\times p_{1} +e\times p_{2}}{2\alpha +u\times p_{1} +u\times p_{2}}} }\right) \\ +\left ({{2-x_{1} -x_{2}} }\right)\log _{2} \left ({{\dfrac {2k+m\times p_{1} +m\times p_{2}}{2k+s\times p_{1} +s\times p_{2}}} }\right) \\ \end{array}}\!\! }\right \}\!\!\!\!\! \\{}\tag{35}\end{align*}
We take Eq. (34) minus Eq. (35), which can be expressed as \begin{align*}&\hspace {-1pc}\frac {1}{2}\left [{ {\textrm {R}(p_{1},x_{1})+\textrm {R}(p_{2},x_{2})} }\right]-\textrm {R}\left ({{\frac {p_{1} \!+\!p_{2}}{2},\frac {x_{1} \!+\!x_{2}}{2}} }\right) \\=&\frac {\rho Bx_{1}}{2}\left ({{\log _{2} \left ({{\frac {\alpha \!+\! e\times p_{1}}{\alpha \!+\! u\!\times \! p_{1}}} }\right)\!-\!\log _{2} \left ({{\frac {2\alpha \!+\! e\!\times \! \left ({{p_{1} \!+\! p_{2}} }\right)}{2\alpha \!+\! u\!\times \! \left ({{p_{1} \!+\! p_{2}} }\right)}} }\right)} }\right) \\&+\,\frac {\rho Bx_{2}}{2}\left ({\! {\log _{2} \left ({\! {\frac {\alpha \!+\! e\times p_{2}}{\alpha \!+\! u\!\times \! p_{2}}} \!}\right)\!-\!\log _{2} \left ({\! {\frac {2\alpha \!+\! e\!\times \! \left ({{p_{1} \!+\! p_{2}} }\right)}{2\alpha \!+\!u\!\times \! \left ({{p_{1} \!+\! p_{2}} }\right)}} \!}\right)} \!}\right) \\&+\,\frac {\rho B\left ({{1-x_{1}} }\right)}{2}\Biggl ({\log _{2} \left ({{\frac {k+m \times p_{1}}{k+s \times p_{1}}} }\right)} \\&{-\, \log _{2} \left ({{\frac {2k+m \times \left ({{p_{1} + p_{2}} }\right)}{2k+s \times \left ({{p_{1} + p_{2}} }\right)}} }\right) }\Biggr ) \\&+\,\frac {\rho B\left ({{1-x_{2}} }\right)}{2}\Biggl ({\log _{2} \left ({{\frac {k+m \times p_{2}}{k+s \times p_{2}}} }\right)} \\&{-\,\log _{2} \left ({{\frac {2k+ m \times \left ({{p_{1} + p_{2}} }\right)}{2k+s \times \left ({{p_{1} + p_{2}} }\right)}} }\right) }\Biggr )\tag{36}\end{align*}
It can prove Eq. (33) is a concave function with variables
Proof of the Theorem 2
It can be seen that each constraint in problem (15) is a convex function with variables