1 Introduction

Orthogonal frequency division multiplexing (OFDM) is the viable air interface for providing the high spectral efficiency and ubiquitous communication services because of its ability to combat frequency selective fading and flexibility in resource allocation. However, the power-hungry circuitries and the limited energy supplies in portable devices lead to the bottlenecks in prolonging the lifetime of networks and guaranteeing quality of service (QoS). As a result, the energy-efficient mobile communication has drawn much attention from both the industry and the academia [1,2,3,4].

Traditionally, the energy has been harvested from natural renewable energy sources, such as solar, wind and geothermal heat, thereby substantially reducing the reliance on the energy supply from conventional energy sources. In this context, simultaneous wireless information and power transfer (SWIPT) has emerged and attracted the widespread concern. Varshney put forward the concept of transmitting information and energy simultaneously and defined the capacity energy function for the first time [5]. Pulkit Grover proposed the model based on the electromagnetic induction principle and analyzed the noise coupling circuit with SWIPT [6,7,8,9,10] maximized the energy efficiency in spectrum sensing. Two transmission protocols based on power splitting relaying and mode adaptation were proposed in OFDM relaying SWIPT systems [11]. Liang Liu proposed a classical transmission solution [12]. Specifically, the received signal is divided into two circuits: one is used for information decoding, and the other one is used for energy harvesting. As two classical models, time switching (TS) model and power switching (PS) model were put forward in [13,14,15], respectively. In TS model, the receiver switches to energy harvesting mode or information mode within one transmission period. In PS model, the receiver splits the power into two parts with some ratios of which one part is used for information decoding and another part is used for energy harvesting. Javer Rubio combined SWIPT with multiple-input-single-output (MISO) in [16] where a transmitter with multi-antennas transmits the same information to several banks of single antenna simultaneously. Various types of SWIPT systems including two-user MIMO broadcast channels, two-way communication links, and point-to-point links assisted by passive relays have been formulated and optimized in [17,18,19,20] proposed an optimal algorithm of power splitting based on downlink OFDMA by means of iterative algorithm. A tradeoff between TS and PS was proposed in [21].

As the promising technology for improving spectrum efficiency, cognitive radio (CR) has been investigated a lot recently [22,23,24]. SWIPT in CR networks with multiusers was studied in [25]. Two SWIPT schemes were proposed [26] for CR networks with a single SU. The secure beamforming schemes for SWIPT in a MISO broadcast channel was investigated in [27].

Different from PS and TS models, we study a subcarrier allocation algorithm based on SWIPT for the OFDM system with multiusers which is without a splitter at the receiver. The subcarriers of each user are separated into the information decoding part and the energy harvesting part. On the basis, we address the problem of maximizing the sum rate of users under the condition of enough energy harvesting. The problem is non-convex, and an iterative algorithm is used to solve it.

2 System model

We consider a wireless OFDM downlink system consisting of one cognitive base station (CBS) and k users. As shown in Fig. 1, each user is only equipped with one antenna. Let K denote the set of k users. The OFDM system bandwidth is assumed to be equally divided into n (n ≥ k) channels. The set of subcarriers is denoted as N (N = {1,2,⋯n}). Each subcarrier must be allocated to only one user. Parts of subcarriers are used for energy harvesting, while the others are utilized for information decoding simultaneously. We suppose that the channel power gain on each subcarrier is always constant in one transmission period provided by the base station. Let h k , n represent the gain of the k-th user on the n-th subcarrier. Then, the noise power of each subcarrier is modeled as an additive white Gaussian noise (AWGN) random variable with zero mean and variance σ 2. The total transmission power is limited to the power budget P. Therefore, the power allocated on the n-th subcarrier is denoted as P n . Let S P represent the subcarriers used for energy harvesting to power transfer. Accordingly, the other subcarriers used for information decoding are denoted by S I. Hence, S K I represents the subcarriers of K-th user for information transfer. Since one subcarrier cannot be used for energy harvesting and transfer information simultaneously, we have S I ∩ S P = ∅and S I ∪ S P = N.

Fig. 1
figure 1

System model

3 Problem formulation

Our aim is to maximize the sum rate of the OFDM downlink under the constraint of the minimum harvested energy for each user. Let B k represent the minimum harvested energy of the k-th user. Since one subcarrier can only be allocated to one user, we use α n , k to stand for a binary channel allocation index. In other words, α n , k  = 1 means that the subcarrier n is only allocated to the user k, while α n , k  = 0 is determined on other terms. Thus, it is written as:

$$ {\sum}_{k=1}^K{\alpha}_{k,n}=1,\forall n\in N $$
(1)

The sum rate can be formulated as:

$$ {\sum}_{k=1}^K{\sum}_{n\in {S}^I}{\alpha}_{k,n}\log \left(1+\frac{h_{k,n}{P}_n}{\sigma^2}\right) $$
(2)

Here, n ∈ S I. With energy harvesting efficiency ε, the harvested energy during one transmission block for user k is determined by:

$$ {\sum}_{n\in {S}^P}\left(\varepsilon {h}_{k,n}{P}_n+{\sigma}^2\right) $$
(3)

For ∀k ∈ K. Therefore, the optimization model of maximum sum rate can be expressed as:

$$ {\displaystyle \begin{array}{c}\hfill \begin{array}{c}\hfill \max \hfill \\ {}\hfill {\alpha}_{n,k},{S}^I,{P}_n\hfill \end{array}{\sum}_{k=1}^K{\sum}_{n\in {S}^I}{\alpha}_{k,n}\log \left(1+\frac{h_{k,n}{P}_n}{\sigma^2}\right)\hfill \\ {}\hfill \mathrm{s}.\mathrm{t}.\kern0.5em {\sum}_{n\in N}{P}_n\le P\kern0.5em \left(\ {P}_n\ge 0\right)\hfill \\ {}\hfill \begin{array}{c}\hfill {S}^P\cup {S}^I=N\kern5em \hfill \\ {}\hfill \begin{array}{c}\hfill {S}^P\cap {S}^I=\varnothing \kern5.25em \hfill \\ {}\hfill {\sum}_{k=1}^K{\alpha}_{k,n}=1,\kern0.75em \forall n\in N\kern4.75em \hfill \\ {}\hfill {\alpha}_{k,n}\in \left\{0,1\right\},\kern0.75em \forall k\in K,n\in N\hfill \end{array}\hfill \end{array}\hfill \end{array}} $$
(4)

4 Optimal solution

Since the problem is non-convex, it is impossible to obtain the optimal solution directly. In this section, a sub-optimal algorithm is proposed for solving the non-convex problem.

The optimization task can be decomposed into three steps: to optimize α k , n with given P n and S I(S P), to optimize P n with given α k , n and S I(S P), as well as to optimize S I(S P) with given α k , n and P n .

Firstly, since P n and S I(S P) are determined, α k , n is optimized as follows:

$$ {\displaystyle \begin{array}{c}\hfill \begin{array}{c}\hfill \max \hfill \\ {}\hfill {\alpha}_{n,k}\hfill \end{array}{\sum}_{k=1}^K{\alpha}_{k,n}\log \left(1+\frac{h_{k,n}{P}_n}{\sigma^2}\right),\kern1.25em n\kern0.30em \in \kern0.30em {S}^I\hfill \\ {}\hfill \begin{array}{c}\hfill\ \mathrm{s}.\mathrm{t}.{\sum}_{k=1}^K{\alpha}_{k,n}=1,\kern0.75em \forall n\kern0.30em \in \kern0.30em N\hfill \\ {}\hfill \kern5.5em {\alpha}_{k,n}\in \left\{0,1\right\},\kern0.75em \forall k\kern0.30em \in \kern0.30em K,n\kern0.30em \in \kern0.30em N\kern0.75em \hfill \end{array}\hfill \end{array}} $$
(5)

The problem above is regarded as allocating the subcarrier n to the assigned user for obtaining the maximum sum rate. In other words, the subcarrier n (n ∈ S I) is allocated to the user k which can get the maximum h k , n P n , i.e., \( {\alpha}_{k^{\ast },n}=1 \), \( {k}^{\ast }=\arg \underset{k\in K}{\max }{h}_{k,n}{P}_n \) and α k , n  = 0 ,  ∀ k ≠ k  , k ∈ K.

Secondly, P n is optimized by α k , n and S I(S P). In this proposition, the problem can be rewritten as:

$$ {\displaystyle \begin{array}{c}\hfill \begin{array}{c}\hfill \max \hfill \\ {}\hfill {P}_n\hfill \end{array}{\sum}_{n\in {S}_k^I}\log \left(1+\frac{h_{k^{\ast },n}{P}_n}{\sigma^2}\right)\hfill \\ {}\hfill \begin{array}{c}\hfill \kern2.75em \mathrm{s}.\mathrm{t}.\kern0.75em {\sum}_{n\in {S}^P}\left(\varepsilon {h}_{k^{\ast },n}{P}_n+{\sigma}^2\right)\ge {B}_k\hfill \\ {}\hfill {\sum}_{n\in N}{P}_n\le P\kern0.75em \left({P}_n\ge 0\right)\hfill \end{array}\hfill \end{array}} $$
(6)

Note that \( {\alpha}_{k^{\ast },n}=1,{\alpha}_{k,n}=0,\forall k\ne {k}^{\ast },k\in K \). The converted problem is satisfied with convex model. Therefore, the Lagrange dual decomposition is adopted to solve this problem. The Lagrange dual function is as follows:

$$ g\left({\beta}_1,{\beta}_2\right)={\mathrm{max}}_{\left\{{P}_n\right\}}L\left({P}_n\right) $$
(7)

Where, β 1 and β 2 are the Lagrange multipliers and they are determined by the sub-gradient method. Meanwhile, L(P n ) is expressed as:

$$ L\left({P}_n\right)={\sum}_{n\in {S}_k^I}\log \left(1+\frac{h_{k^{\ast },n}{P}_n}{\sigma^2}\right)+{\beta}_1\left\{{\sum}_{n\in {S}^P}\left(\varepsilon {h}_{k^{\ast },n}{P}_n+{\sigma}^2\right)-{B}_k\right\}+{\beta}_2\left(P-{\sum}_{n\in N}{P}_n\right) $$
(8)

Then, the dual problem can be simplified as follows:

$$ {\displaystyle \begin{array}{c}\hfill {\mathrm{min}}_{\beta_1,{\beta}_2}g\left({\beta}_1,{\beta}_2\right)\hfill \\ {}\hfill \mathrm{s}.\mathrm{t}\kern1em {\beta}_1,{\beta}_2\ge 0\hfill \end{array}} $$
(9)

Because the dual problem is differentiable, it can be solved by the classic sub-gradient method, which solves the optimal problem based on the gradient and the suitable step size [28]. The result is presented as below:

$$ \varDelta {\beta}_1={\sum}_{n\in {S}^P}\varepsilon {h}_{k^{\ast },n}{P}_n+{\sigma}^2-{B}_k $$
(10)
$$ \varDelta {\beta}_2=P-{\sum}_{n\in N}{P}_n $$
(11)

For the given β 1 and β 2, the optimal power P n (n ∈ S I) is obtained according to KKT conditions using mathematical manipulation:

$$ {P}_n={\left(\frac{1}{\beta_2}-\frac{\sigma^2}{h_{k^{\ast },n}}\right)}^{+} $$
(12)

Where, (.)+denotes max(.,0).

Similarly, the allocated power P n used for energy harvesting is determined as:

$$ {P}_n=\left\{\begin{array}{c}\hfill {P}_{\mathrm{max}}{\beta}_1{h}_{k^{\ast },n}\varepsilon >{\beta}_2\hfill \\ {}\hfill {P}_{\mathrm{min}}{\beta}_1{h}_{k^{\ast },n}\varepsilon \le {\beta}_2\hfill \end{array}\right. $$
(13)

Where, P max and P min represent the maximum and minimum power constraints on information decoding, respectively.

figure a

According to P n and α n , k , S I(S P) can be obtained by substituting (11) and (12) into (8). Consequently, the Lagrange dual function can be rewritten as below:

$$ {\displaystyle \begin{array}{c}L\left({S}^P\right)={\sum}_{k=1}^K{\sum}_{n\in N}{\alpha}_{n,k}\log \left(1+\frac{h_{k,n}{P}_n}{\sigma^2}\right)-{\sum}_{k=1}^K{\sum}_{n\in {S}^P}{\alpha}_{n,k}\log \left(1+\frac{h_{k,n}{P}_n}{\sigma^2}\right)+{\beta}_1{\sum}_{n\in {S}^P}\left(\varepsilon {h}_{k,n}{P}_n+{\sigma}^2\right)-{\beta}_1{B}_k+{\beta}_2P-{\beta}_2{\sum}_{n\in N}{P}_n\\ {}={\sum}_{n\in {S}^P}\left\{{\beta}_1\left(\varepsilon {h}_{k,n}{P}_n+{\sigma}^2\right)-{\sum}_{k=1}^K{\alpha}_{n,k}\log \left(1+\frac{h_{k,n}{P}_n}{\sigma^2}\right)\right\}+{\sum}_{n\in N}\left\{{\sum}_{k=1}^K{\alpha}_{n,k}\log \left(1+\frac{h_{k,n}{P}_n}{\sigma^2}\right)-{\beta}_2{P}_n\right\}-{\beta}_1{B}_k+{\beta}_2P\\ {}={\sum}_{n\in {S}^P}{F}_n+{\sum}_{n\in N}\left\{{\sum}_{k=1}^K{\alpha}_{n,k}\log \left(1+\frac{h_{k,n}{P}_n}{\sigma^2}\right)-{\beta}_2{P}_n\right\}-{\beta}_1{B}_k+{\beta}_2P\end{array}} $$
(14)

Where,

$$ {F}_n={\beta}_1\left(\varepsilon {h}_{k,n}{P}_n+{\sigma}^2\right)-{\sum}_{k=1}^K{\alpha}_{n,k}\log \left(1+\frac{h_{k,n}{P}_n}{\sigma^2}\right) $$
(15)

When we observe the formula (13), only the first item on the right side is about to S P. Thus, the optimal S P can be achieved by maximizing the item F n , i.e.,

$$ {S}^{P\ast }=\arg \kern0.5em {\mathrm{max}}_{S^P}{\sum}_{n\in {S}^P}{F_n}^{\ast } $$
(16)

S P can be easily obtained by substituting all the n into F n to find the ones which make F n positive. As a result, the rest of the set N belongs to S I.

The proposed algorithm to solve the optimal problem is presented as below:

figure b

5 Simulation results

In this section, the performance of the proposed subcarrier allocation algorithm based on SWIPT for the OFDM system with multiusers is demonstrated by simulation results.

We denote all the channels involved follow the Rayleigh distribution. For simplicity, we suppose that the minimum harvested energy limits for all the users are the same, i.e., B k  = B. In addition, we set N = 16, K = 5, σ 2=1, P max = 3 W, P min = 0, ε = 1, and the bandwidth is equal to 1 MHz.

Figure 2 shows the convergence behavior of the proposed algorithm. It can be seen that the proposed algorithm converges fast. It indicates that the proposed algorithm can be implemented practically.

Fig. 2
figure 2

Convergence behavior of the proposed algorithm

Figure 3 presents the comparison between the proposed optimization algorithm and the conventional algorithm of subcarrier allocation based on [29]. It can be observed that the proposed algorithm performs better compared with the conventional algorithm.

Fig. 3
figure 3

Sum rate of users vs. sum transmission power

When the conventional algorithm allocates N subcarriers to K users, all the subcarriers are used for information decoding and the consumed energy comes from the system. Since the system can not produce energy by itself, the energy comes from the finite battery. Therefore, the constraint of minimum energy harvesting can not be satisfied more often than not. Since the water-filling approach is used for the power allocation of the conventional algorithm, it would cause some power waste. What is more, all the subcarriers allocated to information decoding lead to the energy consumption and less power is used for information decoding. Figure 2 also demonstrates that the sum rate of users increases with the increase of sum transmit power P. It can be interpreted as that the increase of sum transmit power brings about the more power allocated to information decoding with the same target harvested energy.

Figure 4 shows that the total transmit power used for information decoding of user k. It can be seen that the user 3 is allocated the most power, while the user 1 is the least. This is because, in our simulation, the user 3 has the best channel condition so that it can achieve higher sum rate.

Fig. 4
figure 4

The allocated power for user k

Figure 5 shows that the sum rate of users versus the minimum energy harvesting limit B k under the fixed power budget. It is obvious that the sum rate varies with the constraint of the harvested energy. When B k increases, the sum rate decreases. This is because when the constraint of energy harvesting increases, more subcarriers are allocated to satisfy the constraint of the harvested energy. It leads to less resources that are allocated to the information decoding. It can also be observed that, with regard to the same constraint of energy harvesting, the sum rate decreases as the number of users increases. That is expected due to the fact that under the same power budget, the increasing number of users causes the decrease of the average allocated power for each subcarrier. As a result, more subcarriers are allocated to energy harvesting in order to satisfy the same constraint of the required energy, as well as the sum rate of users increases.

Fig. 5
figure 5

Sum rate of users vs. harvested energy

Figure 6 shows the allocated power to each subcarrier under the condition of the power budget equal to 80 W. It also illustrates the average channel gain for each subcarrier. As shown in Fig. 6, when the subcarrier has the good channel condition, it is always used for energy harvesting. On the other hand, when the subcarrier has the bad channel condition, it is always used for information decoding and less power is allocated. The phenomenon appears because to allocate the good channel for energy harvesting leads to less subcarriers used for energy harvesting and more subcarriers used for information decoding to achieve maximum sum rate.

Fig. 6
figure 6

The allocated power and channel condition of subcarrier n

6 Conclusions

A subcarrier allocation algorithm based on SWIPT for the OFDM system with multiusers was proposed in this paper. Traditionally, SWIPT is used for single user in OFDM systems more often than not. However, we proposed a joint optimization algorithm used for multiusers. Specifically, the OFDM subcarriers of each user are divided into two parts whose one part is used for information decoding and the other part is used for energy harvesting. Therefore, in contrast to the conventional time or power splitter at the receiver, the enough information rate can be obtained on the premise of the harvested energy we require. Simulation results show that the proposed algorithm converges fast and performs better than the conventional algorithm in the rate of information decoding.