中继网络能量效率最优分配方法、装置、终端及存储介质Relay network energy efficiency optimal distribution method, device, terminal and storage medium
技术领域Technical field
本发明涉及无线携能中继网络的资源优化技术领域,尤其涉及一种中继网络能量效率最优分配方法、装置、终端及存储介质。The present invention relates to the technical field of resource optimization of wireless energy-carrying relay networks, and in particular to a method, device, terminal and storage medium for optimal allocation of energy efficiency of a relay network.
背景技术Background technique
随着无线通信网络和通信技术的持续发展,以及能源等有限资源的不断消耗,具有能量收集功能的通信设备被认为是能够为能量受限的通信系统提供自我可持续发展的一个极具前景的替代。无线携能通信将通信技术和无线能量收集技术结合,目的在于实现信息和能量的同时传输,从而能够在频谱效率,能源消耗以及干扰管理等方面带来巨大收益,同时,无线网络中的节点可以利用无线携能通信收集能量以此延长自身的使用寿命。With the continuous development of wireless communication networks and communication technologies, as well as the continuous consumption of limited resources such as energy, communication devices with energy harvesting functions are considered to be able to provide self-sustainable development for energy-constrained communication systems. Substitute. Wireless energy-carrying communication combines communication technology and wireless energy harvesting technology. The purpose is to realize the simultaneous transmission of information and energy, which can bring huge benefits in terms of spectrum efficiency, energy consumption, and interference management. At the same time, nodes in wireless networks can Use wireless energy-carrying communication to collect energy to extend its service life.
目前,随着人们对于能源与环境问题的日益重视,绿色通信这一理念越来越被人们所接受。在保证通信网络能够给用户提供高速率通信业务的同时,尽可能减少网络的能量消耗,实现通信网络运营成本以及能量消耗的降低,利于对环境的保护,实现绿色发展。但是,在通信网络资源的优化配置中,系统的能量效率仅采用简单的线性能量接收模型进行优化,得到的结果与实际偏差较大,并且,现有的能量效率优化方案中,未考虑到窃听者存在的问题,降低了通信网络的安全性。At present, as people pay more and more attention to energy and environmental issues, the concept of green communication is increasingly accepted by people. While ensuring that the communication network can provide users with high-speed communication services, the energy consumption of the network is reduced as much as possible, and the operation cost and energy consumption of the communication network are reduced, which is beneficial to the protection of the environment and the realization of green development. However, in the optimal configuration of communication network resources, the energy efficiency of the system is optimized only by using a simple linear energy receiving model, and the obtained results have a large deviation from the actual situation. Moreover, in the existing energy efficiency optimization schemes, eavesdropping is not considered. The existing problems of the user reduce the security of the communication network.
发明内容Summary of the invention
本发明提供了一种中继网络能量效率最优分配方法、装置、终端及存储介质,以解决现有中继通信网络的最大能量效率优化方案与实际偏差较大且安全性较低的问题。The present invention provides a relay network energy efficiency optimal distribution method, device, terminal and storage medium, so as to solve the problem that the maximum energy efficiency optimization scheme of the existing relay communication network has large actual deviation and low safety.
为了解决上述问题,本发明提供了一种中继网络能量效率最优分配方法,其应用于中继网络系统的中继,中继网络系统还包括源端、接收端和窃听段;方法包括:In order to solve the above problems, the present invention provides a method for optimal distribution of energy efficiency in a relay network, which is applied to the relay of a relay network system. The relay network system further includes a source end, a receiver end and an eavesdropping section; the method includes:
基于预设分配的方式接收源端发送的信息和能量并转发信息至接收端;Receive the information and energy sent by the source based on a preset distribution method and forward the information to the receiving end;
获取源端到接收端的信息传输时的相关功率参数、相关信道增益参数、相关电路损耗参数,以及自身、接收端和窃听端的加性高斯白噪声参数;Obtain the relevant power parameters, relevant channel gain parameters, relevant circuit loss parameters, and additive white Gaussian noise parameters of itself, the receiving end and the eavesdropping end during information transmission from the source to the receiving end;
根据相关功率参数、相关信道增益参数计算收集到的能量E;Calculate the collected energy E according to related power parameters and related channel gain parameters;
根据相关功率参数、相关信道增益参数和加性高斯白噪声参数计算源端到接收端的传输速率R;Calculate the transmission rate R from the source end to the receiver end according to the relevant power parameters, relevant channel gain parameters and additive white Gaussian noise parameters;
根据相关功率参数、相关电路损耗参数和能量E计算总能量消耗E
tot;
Calculate total energy consumption E tot according to relevant power parameters, relevant circuit loss parameters and energy E;
根据传输速率R和总能量消耗E
tot构建一个以最大能量效率maxEE为目标的非凸优化问题;
According to the transmission rate R and the total energy consumption E tot, construct a non-convex optimization problem with the maximum energy efficiency maxEE as the goal;
通过引入变量并根据非线性分式规划理论将非凸优化问题转化为一个D.C.优化问题,并计算最优解。By introducing variables and according to the theory of nonlinear fractional programming, the non-convex optimization problem is transformed into a D.C. optimization problem, and the optimal solution is calculated.
作为本发明的进一步改进,预设分配的方式包括时间分配的方式或功率分配的方式。As a further improvement of the present invention, the preset allocation method includes a time allocation method or a power allocation method.
作为本发明的进一步改进,当预设分配的方式为时间分配的方式时,基于预设分配的方式接收源端发送的信息和能量并转发信息至接收端的步骤包括:As a further improvement of the present invention, when the preset distribution mode is a time distribution mode, the steps of receiving the information and energy sent by the source terminal based on the preset distribution mode and forwarding the information to the receiving terminal include:
将源端发送信息至接收端的传输时间划分为α
1T、α
2T、α
3T三个时间段,其中α
1+α
2+α
3=1,T为总传输时间,α
1T时间段内收集源端发送的能量,α
2T时间段内接收源端发送的信息,α
3T时间段内转发信息至接收端;
The transmission time from the source end to the receiving end is divided into three time periods: α 1 T, α 2 T, and α 3 T, where α 1 +α 2 +α 3 =1, T is the total transmission time, and α 1 T time Collect the energy sent by the source in the period, receive the information sent by the source in the period α 2 T, and forward the information to the receiving end in the period α 3 T;
获取接收源端发送的信息以及转发信息至接收端时的相关功率参数、相关信道增益参数、相关电路损耗参数,以及自身、接收端和窃听端的加性高斯白噪声参数的步骤包括:The steps of obtaining the information sent by the receiving source and the related power parameters, related channel gain parameters, related circuit loss parameters, and additive white Gaussian noise parameters of the receiving end and the eavesdropping end when forwarding the information to the receiving end include:
获取收集源端发送的能量时第n个子载波上源端的发送功率
接收源端发送信息时第n个子载波上的发送功率
转发信息至接收端时第n个子载波上源端的发送功率
其中n∈N,N为子载波的个数;
Get the transmit power of the source on the nth subcarrier when collecting the energy sent by the source The transmit power on the nth subcarrier when the receiving source sends information The transmit power of the source on the nth subcarrier when forwarding information to the receiving end Where n ∈ N, N is the number of subcarriers;
获取第n个子载波从源端到自身的信道增益
从自身到接收端的信道增益
以及自身到窃听端的信道增益
Obtain the channel gain of the nth subcarrier from the source to itself Channel gain from self to receiver And the channel gain from itself to the eavesdropper
获取源端发送能量至自身时的电路损耗
源端发送信息至自身时的电路损耗
自身在转发信息时的电路损耗
和接收端在接收信息时的电路损耗
Obtain the circuit loss when the source sends energy to itself The circuit loss when the source sends information to itself Circuit loss when transmitting information And the circuit loss of the receiving end when receiving information
获取自身的加性高斯白噪声的方差
接收端的加性高斯白噪声的方差
和窃听端的加性高斯白噪声的方差
Get the variance of its own additive Gaussian white noise Variance of additive white Gaussian noise at the receiving end And the variance of the additive white Gaussian noise
作为本发明的进一步改进,当预设分配的方式为功率分配的方式时,基于预设分配的方式接收源端发送的信息和能量并转发信息至接收端的步骤包括:As a further improvement of the present invention, when the preset allocation method is a power allocation method, the steps of receiving the information and energy sent by the source end based on the preset allocation method and forwarding the information to the receiving end include:
设定源端发送信息和能量的功率分配比例为θ,并在前T/2时间内,源端向自身发送信息和能量,在后T/2时间内,自身将信息转发至接收端,T为总传输时间;Set the power distribution ratio of the source to send information and energy to θ, and in the first T/2 time, the source sends information and energy to itself, and in the next T/2 time, it forwards the information to the receiving end. Is the total transmission time;
获取接收源端发送的信息以及转发信息至接收端时的相关功率参数、相关信道增益参数、相关电路损耗参数,以及自身、接收端和窃听端的加性高斯白噪声参数的步骤包括:The steps of obtaining the information sent by the receiving source and the related power parameters, related channel gain parameters, related circuit loss parameters, and additive white Gaussian noise parameters of the receiving end and the eavesdropping end when forwarding the information to the receiving end include:
获取自身接收源端发送的信息和能量时第n个子载波上源端的发送功率
自身转发信息至接收端时第n个子载波上源端的发送功率
n∈N,N为子载波的个数;
The transmit power of the source on the nth subcarrier when obtaining the information and energy sent by the source The transmit power of the source end on the nth subcarrier when it forwards information to the receiving end n ∈ N, N is the number of subcarriers;
获取第n个子载波从源端到自身的信道增益
从自身到接收端的信道增益
以及自身到窃听端的信道增益
Obtain the channel gain of the nth subcarrier from the source to itself Channel gain from self to receiver And the channel gain from itself to the eavesdropper
获取源端发送信息和能量时的电路损耗
自身在转发信息时的电路损耗
接收端在接收信息时的电路损耗
Obtain the circuit loss when the source sends information and energy Circuit loss when transmitting information Circuit loss at the receiving end when receiving information
获取自身的加性高斯白噪声的方差
接收端的加性高斯白噪声的方差
和窃听端的加性高斯白噪声的方差
Get the variance of its own additive Gaussian white noise Variance of additive white Gaussian noise at the receiving end And the variance of the additive white Gaussian noise
为了解决上述问题,本发明还提供了一种中继网络能量效率最优分配装置,其包括:In order to solve the above problems, the present invention also provides a relay network energy efficiency optimal distribution device, which includes:
划分模块,用于基于预设分配的方式接收源端发送的信息和能量并转发信息至接收端;The dividing module is used to receive the information and energy sent by the source terminal based on a preset distribution method and forward the information to the receiving terminal;
参数获取模块,用于获取源端到接收端的信息传输时的相关功率参数、相关信道增益参数、相关电路损耗参数,以及自身、接收端和窃听端的加性高斯白噪声参数;The parameter acquisition module is used to acquire relevant power parameters, relevant channel gain parameters, relevant circuit loss parameters, and additive white Gaussian noise parameters of itself, the receiving end and the eavesdropping end during information transmission from the source end to the receiving end;
收集能量计算模块,用于根据相关功率参数、相关信道增益参数计算收集到的能量E;The collected energy calculation module is used to calculate the collected energy E according to related power parameters and related channel gain parameters;
传输速率计算模块,用于根据相关功率参数、相关信道增益参数和加性高斯白噪声参数计算源端到接收端的传输速率R;The transmission rate calculation module is used to calculate the transmission rate R from the source end to the receiving end according to the relevant power parameters, the relevant channel gain parameters and the additive white Gaussian noise parameters;
能量消耗计算模块,用于根据相关功率参数、相关电路损耗参数和能量E计算总能量消耗E
tot;
The energy consumption calculation module is used to calculate the total energy consumption E tot according to related power parameters, related circuit loss parameters and energy E;
构建模块,用于根据传输速率R和总能量消耗E
tot构建一个以最大能量效率maxEE为目标的非凸优化问题;
The building module is used to construct a non-convex optimization problem with the maximum energy efficiency maxEE as the goal according to the transmission rate R and the total energy consumption E tot ;
转化模块,用于通过引入变量并根据非线性分式规划理论将非凸优化问题转化为一个D.C.优化问题,并计算最优解。The transformation module is used to transform the non-convex optimization problem into a D.C. optimization problem by introducing variables and according to the nonlinear fractional programming theory, and calculate the optimal solution.
作为本发明的进一步改进,预设分配的方式包括时间分配的方式或功率分配的方式。As a further improvement of the present invention, the preset allocation method includes a time allocation method or a power allocation method.
作为本发明的进一步改进,当预设分配的方式为时间分配的方式时,划分模块用于将源端发送信息至接收端的传输时间划分为α
1T、α
2T、α
3T三个时间段,其中α
1+α
2+α
3=1,T为总传输时间,α
1T时间段内收集源端发送的能量,α
2T时间段内接收源端发送的信息,α
3T时间段内转发信息至接收端;
As a further improvement of the present invention, when the preset allocation method is time allocation, the dividing module is used to divide the transmission time from the source end to the receiving end into three times: α 1 T, α 2 T, and α 3 T Segment, where α 1 + α 2 + α 3 =1, T is the total transmission time, the energy sent by the source is collected in the α 1 T period, the information sent by the source is received in the α 2 T period, and α 3 T is time Forward information within the segment to the receiving end;
参数获取模块包括:The parameter acquisition module includes:
第一功率参数获取单元,用于获取收集源端发送的能量时第n个子载波上源端的发送功率
接收源端发送信息时第n个子载波上的发送功率
转发信息至接收端时第n个子载波上源端的发送功率
其中n∈N,N为子载波的个数;
The first power parameter obtaining unit is used to obtain the transmission power of the source on the nth subcarrier when the energy sent by the source is collected The transmit power on the nth subcarrier when the receiving source sends information The transmit power of the source on the nth subcarrier when forwarding information to the receiving end Where n ∈ N, N is the number of subcarriers;
第一信道增益参数获取单元,用于获取第n个子载波从源端到自身的信道增益
从自身到接收端的信道增益
以及自身到窃听端的信道增益
The first channel gain parameter obtaining unit is used to obtain the channel gain of the nth subcarrier from the source to itself Channel gain from self to receiver And the channel gain from itself to the eavesdropper
第一电路损耗参数获取单元,用于获取源端发送能量至自身时的电路损耗
源端发送信息至自身时的电路损耗
自身在转发信息时的电路损耗
和接收端在接收信息时的电路损耗
The first circuit loss parameter acquisition unit is used to acquire the circuit loss when the source sends energy to itself The circuit loss when the source sends information to itself Circuit loss when transmitting information And the circuit loss of the receiving end when receiving information
第一噪声参数获取单元,用于获取自身的加性高斯白噪声的方差
接收端的加性高斯白噪声的方差
和窃听端的加性高斯白噪声的方差
The first noise parameter obtaining unit is used to obtain the variance of its own additive white Gaussian noise Variance of additive white Gaussian noise at the receiving end And the variance of the additive white Gaussian noise
作为本发明的进一步改进,当预设分配的方式为功率分配的方式时,划分模块用于设定源端发送信息和能量的功率分配比例为θ,并在前T/2时间内,源端向自身发送信息和能量,在后T/2时间内,自身将信息转发至接收端,T为总传输时间;As a further improvement of the present invention, when the preset distribution mode is the power distribution mode, the dividing module is used to set the power distribution ratio of the source to send information and energy to θ, and within the first T/2 time, the source Send information and energy to itself, and forward the information to the receiving end within the next T/2, where T is the total transmission time;
参数获取模块包括:The parameter acquisition module includes:
第二功率参数获取单元,用于获取自身接收源端发送的信息和能量时第n个子载波上源端的发送功率
自身转发信息至接收端时第n个子载波上源端的发送功率
n∈N,N为子载波的个数;
The second power parameter obtaining unit is used to obtain the transmission power of the source end on the nth subcarrier when the information and energy sent by the source end are received by itself The transmit power of the source end on the nth subcarrier when it forwards information to the receiving end n ∈ N, N is the number of subcarriers;
第二信道增益参数获取单元,用于获取第n个子载波从源端到自身的信道增益
从自身到接收端的信道增益
以及自身到窃听端的信道增益
The second channel gain parameter obtaining unit is used to obtain the channel gain of the nth subcarrier from the source to itself Channel gain from self to receiver And the channel gain from itself to the eavesdropper
第二电路损耗参数获取单元,用于获取源端发送信息和能量时的电路损耗
自身在转发信息时的电路损耗
接收端在接收信息时的电路损耗
The second circuit loss parameter acquisition unit is used to acquire the circuit loss when the source sends information and energy Circuit loss when transmitting information Circuit loss at the receiving end when receiving information
第二噪声参数获取单元,用于获取加性高斯白噪声参数,加性高斯白噪声参数包括:自身的加性高斯白噪声的方差
接收端的加性高斯白噪声的方差
和窃听端的加性高斯白噪声的方差
The second noise parameter acquisition unit is used to acquire additive white Gaussian noise parameters, and the additive white Gaussian noise parameters include: the variance of its own additive white Gaussian noise Variance of additive white Gaussian noise at the receiving end And the variance of the additive white Gaussian noise
为了解决上述问题,本发明还提供了一种终端,其包括存储器和处理器,处理器耦接存储器,存储器上存储有可在处理器上运行的计算机程序;In order to solve the above problems, the present invention also provides a terminal, which includes a memory and a processor, the processor is coupled to the memory, and a computer program that can run on the processor is stored in the memory;
处理器执行计算机程序时,实现上述任一项中继网络能量效率最优分配方法中的步骤。When the processor executes the computer program, it implements the steps in any one of the above-mentioned methods for optimal distribution of energy efficiency in a relay network.
为了解决上述问题,本发明还提供了一种存储介质,其上存储有计算机程序,计算机程序被处理器执行时,实现上述任一项中继网络能量效率最优分配方法中的步骤。In order to solve the above-mentioned problems, the present invention also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in any one of the above-mentioned methods for optimal distribution of energy efficiency of a relay network are realized.
本发明通过获取源端发送信息和能量至中继、中继转发信息至接收端过程中的相关功率参数、相关信道增益参数、相关电路损耗参数,以及中继自身、接收端和窃听端的加性高斯白噪声参数,并根据上述参数计算出中继自身收集到的能量、信息由源端发送到接收端的传输速率、信息由源端发送到接收端过程中的总能量消耗,进而构建出一个以最大能量效率为目标的非凸优化问题,再通过引入变量并根据,非线性分式规划理论将非凸优化问题转化为一个D.C.优化问题,即得到了一个更符合实际的非线性能量接收模型,并且,还将窃听端考虑入内,在优化源端到接收端的系统能量效率的同时,提高了信息传输过程中的安全性能。The invention obtains the relevant power parameters, relevant channel gain parameters, relevant circuit loss parameters in the process of transmitting information and energy from the source end to the relay and relaying the information to the receiving end, as well as the additivity of the relay itself, the receiving end and the eavesdropping end. Gaussian white noise parameters, and calculate the energy collected by the relay itself, the transmission rate of information sent from the source to the receiving end, and the total energy consumption in the process of sending information from the source to the receiving end based on the above parameters, and then construct a The non-convex optimization problem with maximum energy efficiency as the goal, and then through the introduction of variables and based on the nonlinear fractional programming theory, the non-convex optimization problem is transformed into a DC optimization problem, that is, a more realistic nonlinear energy receiving model is obtained. In addition, the eavesdropping end is also taken into consideration, while optimizing the energy efficiency of the system from the source end to the receiving end, the security performance in the information transmission process is improved.
附图说明Description of the drawings
图1为本发明中继网络系统一个实施例的示意框图;Figure 1 is a schematic block diagram of an embodiment of a relay network system according to the present invention;
图2为本发明中继网络能量效率最优分配方法第一个实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a method for optimal distribution of energy efficiency in a relay network according to the present invention;
图3为本发明中继网络能量效率最优分配方法第二个实施例的流程示意图;3 is a schematic flowchart of a second embodiment of a method for optimal distribution of energy efficiency in a relay network according to the present invention;
图4为本发明中继网络能量效率最优分配方法第三个实施例的流程示意图;4 is a schematic flowchart of a third embodiment of a method for optimal distribution of energy efficiency in a relay network according to the present invention;
图5为本发明中继网络能量效率最优分配装置第一个实施例的功能模块示意图;5 is a schematic diagram of functional modules of a first embodiment of a device for optimally assigning energy efficiency to a relay network according to the present invention;
图6为本发明中继网络能量效率最优分配装置第二个实施例的功能模块示意图;6 is a schematic diagram of functional modules of a second embodiment of a device for optimal distribution of energy efficiency in a relay network according to the present invention;
图7为本发明中继网络能量效率最优分配装置第三个实施例的功能模块示意图;FIG. 7 is a schematic diagram of functional modules of a third embodiment of a device for optimal distribution of energy efficiency in a relay network according to the present invention;
图8为本发明终端一个实施例的示意框图。Fig. 8 is a schematic block diagram of an embodiment of a terminal of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用来限定本发明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
首先,如图1所示,本发明提供的中继网络能量效率最优分配方法涉及到中继网络系统,该中继网络系统包括源端10、中继11、接收端12和窃听端13,其中,中继11具备能量收集的能力,首先源端10向中继11发送信号,中继11进行能量收集,其次源端10向中继11发送信息,最后中继11利用收集到的能量转发源端10的信息到接收端12,窃听端13可在信息传输过程中,从中继11处窃取信息。假设中继11无初始可用能量,考虑源端10到中继11,中继11到接收端12以及中继11到窃听端13的信道均为多载波传输,可用子载波数量为N。First, as shown in Figure 1, the method for optimal distribution of energy efficiency in a relay network provided by the present invention relates to a relay network system, which includes a source terminal 10, a relay terminal 11, a receiving terminal 12, and an eavesdropping terminal 13. Among them, the relay 11 has the ability to collect energy. First, the source 10 sends a signal to the relay 11, and the relay 11 performs energy harvesting. Then the source 10 sends information to the relay 11, and finally the relay 11 uses the collected energy to forward The information from the source end 10 arrives at the receiving end 12, and the eavesdropping end 13 can steal information from the relay 11 during the information transmission process. Assuming that the relay 11 has no initial available energy, consider that the channels from the source 10 to the relay 11, the relay 11 to the receiving end 12, and the relay 11 to the eavesdropping end 13 are all multi-carrier transmission, and the number of available subcarriers is N.
图2展示了本发明中继网络能量效率最优分配方法的第一个实施例。如图2所示,在本实施例中,该中继网络能量效率最优分配方法,包括:Fig. 2 shows the first embodiment of the optimal distribution method for energy efficiency of the relay network of the present invention. As shown in FIG. 2, in this embodiment, the optimal distribution method for energy efficiency of the relay network includes:
步骤S1,基于预设分配的方式接收源端发送的信息和能量并转发信息至接收端。Step S1, receiving the information and energy sent by the source terminal based on a preset distribution method and forwarding the information to the receiving terminal.
需要说明的是,预设分配的方式包括时间分配的方式或功率分配的方式。It should be noted that the preset allocation method includes a time allocation method or a power allocation method.
步骤S2,获取源端到接收端的信息传输时的相关功率参数、相关信道增益参数、相关电路损耗参数,以及自身、接收端和窃听端的加性高斯白噪声参数。Step S2: Obtain related power parameters, related channel gain parameters, related circuit loss parameters, and additive white Gaussian noise parameters of the source end to the receiving end during information transmission.
具体地,当中继在接收源端发送的信息和能量,并将信息转发至接收端的过程中,获取相关功率参数、相关信道增益参数、相关电路损耗参数,以及自身、接收端和窃听端的加性高斯白噪声参数,其中,相关功率参数包括源端、中继和接收端之间的发送功率,相关信道增益参数包括源端到中继、中继到接收端、中继到窃听段的信道增益,相关电路损耗参数包括源端发送信息和能量时的电路损耗、中继转发信息时的电路损耗、接收端接收信息时的电路损耗,加性高斯白噪声参数包括了中继、接收端、窃听段的均值为0的加性高斯白噪声的方差。Specifically, when the relay receives the information and energy sent by the source end and forwards the information to the receiving end, the relevant power parameters, the relevant channel gain parameters, the relevant circuit loss parameters, and the additivity of itself, the receiving end and the eavesdropping end are obtained. Gaussian white noise parameters, where the relevant power parameters include the transmission power between the source, relay and the receiver, and the relevant channel gain parameters include the channel gains from the source to the relay, from the relay to the receiver, and from the relay to the eavesdropping section. Related circuit loss parameters include the circuit loss when the source sends information and energy, the circuit loss when relaying and forwarding information, the circuit loss when the receiving end receives information, and the additive white Gaussian noise parameters include relay, receiving, and wiretapping. The variance of the additive white Gaussian noise with the mean value of the segment being 0.
步骤S3,根据相关功率参数、相关信道增益参数计算收集到的能量E。Step S3: Calculate the collected energy E according to the relevant power parameter and the relevant channel gain parameter.
具体地,中继具备从周围环境收集能量的能力,本实施例中,在获取到相关功率参数和相关信道增益参数之后,即可计算出中继收集到的能量E。Specifically, the relay has the ability to collect energy from the surrounding environment. In this embodiment, after obtaining the relevant power parameter and the relevant channel gain parameter, the energy E collected by the relay can be calculated.
步骤S4,根据相关功率参数、相关信道增益参数和加性高斯白噪声参数计算源端到接 收端的传输速率R。Step S4: Calculate the transmission rate R from the source end to the receiving end according to the relevant power parameter, the relevant channel gain parameter and the additive white Gaussian noise parameter.
具体的,通过相关功率参数、相关信道增益参数和加性高斯白噪声参数计算得到源端向中继发送信息时可实现的传输速率以及中继向接收端转发信息时可实现的传输速率,而且,考虑到存在窃听信道的干扰,结合窃听端的加性高斯白噪声参数即可得到源端到接收端的基于安全条件下的可以实现的传输速率R。Specifically, the achievable transmission rate when the source terminal sends information to the relay and the achievable transmission rate when the relay transmits information to the receiving terminal are calculated through the relevant power parameters, the relevant channel gain parameters and the additive white Gaussian noise parameters, and Taking into account the interference of the eavesdropping channel, combined with the additive white Gaussian noise parameter of the eavesdropping end, the achievable transmission rate R from the source end to the receiving end under security conditions can be obtained.
步骤S5,根据相关功率参数、相关电路损耗参数和能量E计算总能量消耗E
tot。
Step S5: Calculate the total energy consumption E tot according to the relevant power parameters, the relevant circuit loss parameters and the energy E.
具体地,本实施例中,源端和中继均需要进行信息的发送,因此它们相当于发射机,而在实际的无线网络中,发射机进行信号的发送不仅存在发送功率消耗,同时存在实际电路的消耗,包括调频调幅、AD/DA转换、滤波和功率放大等,当发射机的发送功率P>0时,我们认为发射机处于“on”状态,当P=0时,发射机处于“off”状态,P
C,on≥0,P
C,off≥0分别表示在“on”和“off”状态下实际的电路损耗,因此对于无线发射机的实际功率消耗模型可表示为
其中,ε是一个乘法常数,用于反映出射频电路的低效率,P
total表示发射机消耗的总能量,而实际上P
C,off比P
C,on要小很多,所以为了简化,可以认为P
C,on>0,且P
C,off=0,从而无线发射机的实际功率消耗模型可表示为P
total=εP+P
C,on,从而计算出源端发送信息至接收端的过程中的总能量消耗E
tot。
Specifically, in this embodiment, both the source and the relay need to send information, so they are equivalent to the transmitter. In an actual wireless network, the transmitter sends signals not only because of the transmission power consumption, but also the actual The consumption of the circuit, including frequency modulation and amplitude modulation, AD/DA conversion, filtering and power amplification, etc. When the transmitting power of the transmitter P>0, we consider the transmitter to be in the "on" state. When P=0, the transmitter is in the "on" state. "off" state, P C,on ≥0, P C,off ≥0 respectively represent the actual circuit losses in the "on" and "off" states, so the actual power consumption model for the wireless transmitter can be expressed as Among them, ε is a multiplicative constant used to reflect the low efficiency of the radio frequency circuit. P total represents the total energy consumed by the transmitter. In fact, PC ,off is much smaller than PC ,on , so for simplicity, we can consider P C,on >0, and P C,off =0, so the actual power consumption model of the wireless transmitter can be expressed as P total =εP+P C,on , so as to calculate the value in the process of sending information from the source to the receiving end Total energy consumption E tot .
步骤S6,根据传输速率R和总能量消耗E
tot构建一个以最大能量效率maxEE为目标的非凸优化问题。
Step S6, construct a non-convex optimization problem with the maximum energy efficiency maxEE as the target according to the transmission rate R and the total energy consumption E tot .
具体地,根据计算得到的源端到接收端的传输速率R和源端、中继、接收端的总消耗能量E
tot,再综合考虑传输功率的限制,时间的分配,以及通信质量的要求等,构建一个以最大能量效率maxEE为目标的非凸优化问题,可表示为:
Specifically, based on the calculated transmission rate R from the source to the receiving end and the total energy consumption E tot of the source, relay, and receiving end, and then comprehensively consider the limitation of transmission power, time allocation, and communication quality requirements, etc., construct A non-convex optimization problem targeting the maximum energy efficiency maxEE can be expressed as:
步骤S7,通过引入变量并根据非线性分式规划理论将非凸优化问题转化为一个D.C.优化问题,并计算最优解。In step S7, the non-convex optimization problem is transformed into a D.C. optimization problem by introducing variables and according to the nonlinear fractional programming theory, and the optimal solution is calculated.
具体地,通过引入变量,再结合非线性分式规划理论将上述以最大能量效率maxEE为目标的非凸优化问题转化为一个D.C.优化问题,再将其在每个可行点进行近似,得到一个凸优化问题,然后再对凸优化问题进行求解,进而得到最优解。Specifically, through the introduction of variables, combined with nonlinear fractional programming theory, the above non-convex optimization problem with the maximum energy efficiency maxEE as the goal is transformed into a DC optimization problem, and then it is approximated at each feasible point to obtain a convex Optimize the problem, and then solve the convex optimization problem to get the optimal solution.
本实施例通过获取源端发送信息和能量至中继、中继转发信息至接收端过程中的相关功率参数、相关信道增益参数、相关电路损耗参数,以及中继自身、接收端和窃听端的加性高斯白噪声参数,并根据上述参数计算出中继自身收集到的能量、信息由源端发送到接收端的传输速率、信息由源端发送到接收端过程中的总能量消耗,进而构建出一个以最大能量效率为目标的非凸优化问题,再通过引入变量并根据,非线性分式规划理论将非凸优化问题转化为一个D.C.优化问题,即得到了一个更符合实际的非线性能量接收模型,并且,还将窃听端考虑入内,在优化源端到接收端的系统能量效率的同时,提高了信息传输过程中的安全性能。In this embodiment, the related power parameters, related channel gain parameters, related circuit loss parameters in the process of acquiring the source end sending information and energy to the relay and relaying the information to the receiving end, as well as the increase of the relay itself, the receiving end and the eavesdropping end Gaussian white noise parameters, and calculate the energy collected by the relay itself, the transmission rate of information sent from the source to the receiving end, and the total energy consumption in the process of sending information from the source to the receiving end based on the above parameters, and then construct a The non-convex optimization problem with maximum energy efficiency as the goal, and then through the introduction of variables and based on the nonlinear fractional programming theory, the non-convex optimization problem is transformed into a DC optimization problem, that is, a more realistic nonlinear energy receiving model is obtained In addition, the eavesdropping terminal is also taken into consideration to optimize the energy efficiency of the system from the source terminal to the receiving terminal while improving the security performance in the information transmission process.
进一步的,如图3所示,图3展示了本发明中继网络能量效率最优分配方法的第二个 实施例。在本实施例中,预设条件下的方式为时间分配的方式,该中继网络能量效率最优分配方法包括以下步骤:Further, as shown in Fig. 3, Fig. 3 shows a second embodiment of the optimal distribution method for energy efficiency of a relay network of the present invention. In this embodiment, the mode under the preset conditions is the mode of time distribution, and the method for optimal distribution of energy efficiency of the relay network includes the following steps:
步骤S10,将源端发送信息至接收端的传输时间划分为α
1T、α
2T、α
3T三个时间段。
In step S10, the transmission time from the source end to the receiving end is divided into three time periods α 1 T, α 2 T, and α 3 T.
需要说明的是,α
1+α
2+α
3=1,T为总传输时间,α
1T时间段内收集源端发送的能量,α
2T时间段内接收源端发送的信息,α
3T时间段内转发信息至接收端。
It should be noted that α 1 + α 2 + α 3 =1, T is the total transmission time, the energy sent by the source is collected during the period α 1 T, and the information sent by the source is received during the period α 2 T, α 3 The information is forwarded to the receiving end within T time period.
步骤S11,获取收集源端发送的能量时第n个子载波上源端的发送功率
接收源端发送信息时第n个子载波上的发送功率
转发信息至接收端时第n个子载波上源端的发送功率
Step S11: Obtain the transmit power of the source on the nth subcarrier when the energy sent by the source is collected The transmit power on the nth subcarrier when the receiving source sends information The transmit power of the source on the nth subcarrier when forwarding information to the receiving end
需要说明的是,源端到中继,中继到接收端以及中继到窃听端的信道均为多载波传输,可用子载波数量为N,n表示第那个子载波,n∈N。It should be noted that the channels from the source end to the relay, the relay to the receiving end, and the relay to the eavesdropping end are all multi-carrier transmissions, and the number of available subcarriers is N, where n represents the first subcarrier, n∈N.
步骤S12,获取第n个子载波从源端到自身的信道增益
从自身到接收端的信道增益
以及自身到窃听端的信道增益
Step S12: Obtain the channel gain of the nth subcarrier from the source to itself Channel gain from self to receiver And the channel gain from itself to the eavesdropper
步骤S13,获取源端发送能量至自身时的电路损耗
源端发送信息至自身时的电路损耗
自身在转发信息时的电路损耗
和接收端在接收信息时的电路损耗
Step S13: Obtain the circuit loss when the source sends energy to itself The circuit loss when the source sends information to itself Circuit loss when transmitting information And the circuit loss of the receiving end when receiving information
步骤S14,获取自身的加性高斯白噪声的方差
接收端的加性高斯白噪声的方差
和窃听端的加性高斯白噪声的方差
Step S14, obtain the variance of its own additive white Gaussian noise Variance of additive white Gaussian noise at the receiving end And the variance of the additive white Gaussian noise
步骤S15,根据相关功率参数、相关信道增益参数计算收集到的能量E。Step S15: Calculate the collected energy E according to the relevant power parameter and the relevant channel gain parameter.
具体地,在α
1T时间段内收集源端发送的能量,具体根据收集源端发送的能量时第n个子载波上源端的发送功率
和第n个子载波从源端到中继的信道增益
并根据时间分配的方式,计算得到能量E=α
1TΦ,其中,
a、b、M为预设常量,其可通过实际测量数据进行数据拟合得到。
Specifically, the energy sent by the source is collected in the α 1 T time period, specifically according to the transmission power of the source on the nth subcarrier when the energy sent by the source is collected And the channel gain of the nth subcarrier from source to relay And according to the time distribution method, the energy E=α 1 TΦ is calculated, where, a, b, and M are preset constants, which can be obtained by data fitting of actual measurement data.
步骤S16,根据相关功率参数、相关信道增益参数和加性高斯白噪声参数计算源端到接收端的传输速率R。Step S16: Calculate the transmission rate R from the source end to the receiver end according to the relevant power parameter, the relevant channel gain parameter and the additive white Gaussian noise parameter.
具体地,在α
2T时间段内接收源端发送的信息,根据接收源端发送信息时第n个子载波上的发送功率
第n个子载波从源端到自身的信道增益
中继的加性高斯白噪声的方差
计算得到源端向中继传输信息可实现的传输速率
其中,
Specifically, in the α 2 T time period, the information sent by the source is received, and the transmission power on the nth subcarrier when the information is sent by the receiving source is The channel gain of the nth subcarrier from the source to itself Variance of repeating additive white Gaussian noise Calculate the achievable transmission rate from the source to the relay among them,
在α
3T时间段内转发信息至接收端,根据转发信息至接收端时第n个子载波上源端的发送功率
从中继到接收端的信道增益
接收端的加性高斯白噪声的方差
计算得 到中继向接收端转发信息可实现的传输速率
其中,
Forward the information to the receiving end in the α 3 T time period, according to the transmit power of the source end on the nth subcarrier when the information is forwarded to the receiving end Channel gain from repeater to receiver Variance of additive white Gaussian noise at the receiving end Calculate the achievable transmission rate of the relay forwarding information to the receiving end among them,
此时,考虑到窃听信道的干扰,因此,源端到接收端最终可以实现的传输速率
其中,
At this time, considering the interference of the eavesdropping channel, therefore, the transmission rate that can be finally achieved from the source to the receiver among them,
步骤S17,根据相关功率参数、相关电路损耗参数和能量E计算总能量消耗E
tot。
Step S17: Calculate the total energy consumption E tot according to the relevant power parameters, the relevant circuit loss parameters and the energy E.
具体地,从上述实施例可知,实际功率消耗模型可表示为P
total=εP+P
C,on,其中,ε是一个乘法常数,用于反映出射频电路的低效率,而本实施例中,在源端、中继和接收端均存在电路损耗的情况,根据上述消耗模型可知:
Specifically, it can be seen from the above embodiment that the actual power consumption model can be expressed as P total =εP+PC ,on , where ε is a multiplication constant used to reflect the low efficiency of the radio frequency circuit, and in this embodiment, There are circuit losses at the source, relay, and receiver. According to the above consumption model, we know:
源端发送信息和能量所消耗的能量为
The energy consumed by the source to send information and energy is
中继消耗的能量为
The energy consumed by the relay is
而接收端只需要进行信息接收,而不需要进行信息发送,因此,接收端消耗的能量为
The receiving end only needs to receive information, but does not need to send information. Therefore, the energy consumed by the receiving end is
从而,结合中继收集到的能量E,源端发送信息至接收端的过程中的总能量消耗
Thus, combined with the energy E collected by the relay, the total energy consumption in the process of sending information from the source to the sink
步骤S18,根据传输速率R和总能量消耗E
tot构建一个以最大能量效率maxEE为目标的非凸优化问题。
Step S18, construct a non-convex optimization problem with the maximum energy efficiency maxEE as the target according to the transmission rate R and the total energy consumption E tot .
具体地,综合考虑传输功率的限制,时间的分配,以及通信质量的要求,从而根据传输速率R和总能量消耗E
tot构建一个以最大能量效率maxEE为目标的非凸优化问题,可以表示为:
Specifically, considering the transmission power limitation, time allocation, and communication quality requirements, a non-convex optimization problem with the maximum energy efficiency maxEE as the goal is constructed according to the transmission rate R and the total energy consumption E tot , which can be expressed as:
其中,s.t.为最大能量效率maxEE表达式的约束条件,约束(1)和(2)表示源端发送能量和信息的发送功率不得超过其最大可用功率阈值P
MAX,约束(3)表示不考虑中继的初 始能量时,为了保证通信不中断,中继必须满足收集的能量大于等于转发信息时所消耗的能量,约束(4)表示为了保证通信质量,安全传输速率必须要高于所设定的阈值R
Q。
Among them, st is the constraint condition of the maximum energy efficiency maxEE expression. Constraints (1) and (2) indicate that the transmission power of energy and information sent by the source must not exceed its maximum available power threshold P MAX , and constraint (3) indicates not considering In order to ensure that the communication is not interrupted, the relay must meet the requirement that the collected energy is greater than or equal to the energy consumed when forwarding information. Constraint (4) indicates that in order to ensure communication quality, the safe transmission rate must be higher than the set Threshold R Q.
步骤S19,通过引入变量并根据非线性分式规划理论将非凸优化问题转化为一个D.C.优化问题,并计算最优解。In step S19, the non-convex optimization problem is transformed into a D.C. optimization problem by introducing variables and according to the nonlinear fractional programming theory, and the optimal solution is calculated.
具体地,从公式1可以看出,所有的优化变量分为两类,由此我们有变量集Α={α
1,α
2,α
3},
而且可知,上述优化问题属于非凸优化问题,难以求解,因此,本实施例通过证明
和
并引入变量y和z,再根据非线性分式规划理论,并定义新的变量
从而将该非凸优化问题转化为D.C.优化问题,其中,变量y满足
从而可得
变量z满足
和α
1TΦ≥z,从而可得
因此,上述最大化能量效率的问题可以描述为:
Specifically, it can be seen from Formula 1 that all optimization variables are divided into two categories, so we have a variable set Α={α 1 ,α 2 ,α 3 }, Moreover, it can be seen that the above optimization problem is a non-convex optimization problem and is difficult to solve. Therefore, this embodiment proves with And introduce the variables y and z, and then define new variables according to the theory of nonlinear fractional programming Thus, the non-convex optimization problem is transformed into a DC optimization problem, where the variable y satisfies So as to get Variable z satisfies And α 1 TΦ≥z, so that Therefore, the above-mentioned problem of maximizing energy efficiency can be described as:
转换后的优化问题的目标函数为
其对于给定的q值是D.C.函 数,约束条件中的第4、5、6、7、11和12个约束条件也属于D.C.函数,即形如f(x)-g(x),其中x是所有变量组成的向量,f(x)和g(x)都属于凸函数,因此该问题属于D.C.优化问题,而求解D.C.优化问题的思路是将其在每个可行点进行近似,得到一个凸优化问题,然后再对凸优化问题进行求解,从而得到最优解。此迭代步骤不断进行,直至收敛。具体的求解过程如下:
The objective function of the transformed optimization problem is It is a DC function for a given value of q. The 4th, 5th, 6th, 7th, 11th and 12th constraint conditions in the constraint conditions also belong to the DC function, that is, the form is f(x)-g(x), where x Is a vector composed of all variables, f(x) and g(x) are convex functions, so the problem belongs to the DC optimization problem, and the idea of solving the DC optimization problem is to approximate it at each feasible point to obtain a convex Optimize the problem, and then solve the convex optimization problem to get the optimal solution. This iterative step continues until convergence. The specific solution process is as follows:
1:设定算法的计算精度Δ,给定q的初始值为0,令迭代次数i=0;1: Set the calculation accuracy of the algorithm Δ, given the initial value of q, set the number of iterations i=0;
2:给定一个满足变量约束条件的初始值X(0,0),令迭代次数k=0,其中X表示优化问题中所有变量构成的向量;2: Given an initial value X(0,0) that satisfies the variable constraints, set the number of iterations k=0, where X represents the vector formed by all variables in the optimization problem;
3:令i=i+1;3: Let i=i+1;
4:令k=k+1;4: Let k=k+1;
5:求解近似凸优化问题,并得到最优解X(i,k);5: Solve the approximate convex optimization problem and get the optimal solution X(i,k);
6:判断第k和k-1步的目标函数值之差的绝对值是不是小于等于设定的精度,若小于等于,则进行步骤7,否则跳转到步骤4;6: Judge whether the absolute value of the difference between the objective function values of steps k and k-1 is less than or equal to the set accuracy, if less than or equal, proceed to step 7, otherwise skip to step 4;
7:更新q值,
7: Update the value of q,
8:判断第i和i-1步的q值之差是不是小于等于设定的精度,若小于等于,则判定第i步得到的解是算法的最终解,再将第i步得到的q值应用于公式2进行求解,得到最优解,否则跳转到第3步继续执行。8: Judge whether the difference between the q value of the i-th step and the i-1 step is less than or equal to the set precision, if it is less than or equal to the set precision, the solution obtained in the i-th step is determined to be the final solution of the algorithm, and then the q obtained in the i-th step The value is applied to formula 2 to solve and obtain the optimal solution, otherwise skip to step 3 to continue execution.
进一步的,如图4所示,图4展示了本发明中继网络能量效率最优分配方法的第三个实施例。在本实施例中,预设条件下的方式为功率分配的方式,该中继网络能量效率最优分配方法包括以下步骤:Further, as shown in FIG. 4, FIG. 4 shows a third embodiment of the method for optimal distribution of energy efficiency in a relay network of the present invention. In this embodiment, the way under the preset conditions is the way of power distribution, and the method for optimal distribution of energy efficiency of the relay network includes the following steps:
步骤S20,设定源端发送信息和能量的功率分配比例为θ,并在前T/2时间内,源端向自身发送信息和能量,在后T/2时间内,自身将信息转发至接收端。Step S20: Set the power distribution ratio of the source to send information and energy to θ, and within the first T/2, the source sends information and energy to itself, and within the next T/2, it forwards the information to the receiver. end.
具体地,其中,0<θ<1,T为总传输时间。Specifically, where 0<θ<1, T is the total transmission time.
步骤S21,获取自身接收源端发送的信息和能量时第n个子载波上源端的发送功率
自身转发信息至接收端时第n个子载波上源端的发送功率
Step S21: Obtain the transmit power of the source on the nth subcarrier when the information and energy sent by the source are received by itself The transmit power of the source end on the nth subcarrier when it forwards information to the receiving end
需要说明的是,源端到中继,中继到接收端以及中继到窃听端的信道均为多载波传输,可用子载波数量为N,n表示第那个子载波,n∈N。It should be noted that the channels from the source end to the relay, the relay to the receiving end, and the relay to the eavesdropping end are all multi-carrier transmissions, and the number of available subcarriers is N, where n represents the first subcarrier, n∈N.
步骤S22,获取第n个子载波从源端到自身的信道增益
从自身到接收端的信道增益
以及自身到窃听端的信道增益
Step S22: Obtain the channel gain of the nth subcarrier from the source to itself Channel gain from self to receiver And the channel gain from itself to the eavesdropper
步骤S23,获取源端发送信息和能量时的电路损耗
自身在转发信息时的电路损耗
接收端在接收信息时的电路损耗
Step S23: Obtain the circuit loss when the source sends information and energy Circuit loss when transmitting information Circuit loss at the receiving end when receiving information
步骤S24,获取自身的加性高斯白噪声的方差
接收端的加性高斯白噪声的方差
和窃听端的加性高斯白噪声的方差
Step S24, obtain the variance of its own additive white Gaussian noise Variance of additive white Gaussian noise at the receiving end And the variance of the additive white Gaussian noise
步骤S25,根据相关功率参数、相关信道增益参数计算收集到的源端发送的能量E。Step S25: Calculate the collected energy E sent by the source end according to the relevant power parameter and the relevant channel gain parameter.
具体地,在前T/2时间内,源端向自身发送信息和能量,中继接收到的能量
其中,
a、b、M为预设常量,其可通过实际测量数据进行数据拟合得到。
Specifically, in the first T/2 time, the source sends information and energy to itself, and relays the received energy among them, a, b, and M are preset constants, which can be obtained by data fitting of actual measurement data.
步骤S26,根据相关功率参数、相关信道增益参数和加性高斯白噪声参数计算源端到接收端的传输速率R。Step S26: Calculate the transmission rate R from the source end to the receiver end according to the relevant power parameter, the relevant channel gain parameter and the additive white Gaussian noise parameter.
具体地,在前T/2时间内,源端向中继发送信号,此时源端到中继的传输速率为
其中,
Specifically, in the first T/2 time, the source sends a signal to the relay, and the transmission rate from the source to the relay at this time is among them,
在后T/2时间内,中继利用收集到的能量将接收到的信息发送给接收端,此时中继到接收端的传输速率为
其中,
In the last T/2 time, the relay uses the collected energy to send the received information to the receiving end. At this time, the transmission rate from the relay to the receiving end is among them,
此时,考虑到窃听信道的干扰,因此,源端到接收端最终可以实现的传输速率
其中,
At this time, considering the interference of the eavesdropping channel, therefore, the transmission rate that can be finally achieved from the source to the receiver among them,
步骤S27,根据相关功率参数、相关电路损耗参数和能量E计算总能量消耗E
tot。
Step S27: Calculate the total energy consumption E tot according to the relevant power parameters, the relevant circuit loss parameters and the energy E.
具体地,从上述实施例可知,实际功率消耗模型可表示为P
total=εP+P
C,on,其中,ε是一个乘法常数,用于反映出射频电路的低效率,而本实施例中,在源端、中继和接收端均存在电路损耗的情况,根据上述消耗模型可知:
Specifically, it can be seen from the above embodiment that the actual power consumption model can be expressed as P total =εP+PC ,on , where ε is a multiplication constant used to reflect the low efficiency of the radio frequency circuit, and in this embodiment, There are circuit losses at the source, relay, and receiver. According to the above consumption model, we know:
源端发送信息和能量所消耗的能量为
The energy consumed by the source to send information and energy is
中继消耗的能量为
The energy consumed by the relay is
而接收端只需要进行信息接收,而不需要进行信息发送,因此,接收端消耗的能量为
The receiving end only needs to receive information, but does not need to send information. Therefore, the energy consumed by the receiving end is
从而,结合中继收集到的能量E,源端发送信息至接收端的过程中的总能量消耗
Thus, combined with the energy E collected by the relay, the total energy consumption in the process of sending information from the source to the sink
步骤S28,根据传输速率R和总能量消耗E
tot构建一个以最大能量效率maxEE为目标的非凸优化问题。
Step S28, construct a non-convex optimization problem with the maximum energy efficiency maxEE as the target according to the transmission rate R and the total energy consumption E tot .
具体地,综合考虑传输功率的限制,时间的分配,以及通信质量的要求,从而根据传输速率R和总能量消耗E
tot构建一个以最大能量效率maxEE为目标的非凸优化问题,可以表示为:
Specifically, considering the transmission power limitation, time allocation, and communication quality requirements, a non-convex optimization problem with the maximum energy efficiency maxEE as the goal is constructed according to the transmission rate R and the total energy consumption E tot , which can be expressed as:
其中,s.t.为最大能量效率maxEE表达式的约束条件,约束(1)表示源端发送能量和信息的发送功率不得超过其最大可用功率阈值P
MAX,约束(2)表示不考虑中继的初始能量时,为了保证通信不中断,中继必须满足收集的能量大于等于转发信息时所消耗的能量,约束(3)表示为了保证通信质量,安全传输速率必须要高于所设定的阈值R
Q。
Among them, st is the constraint condition of the maximum energy efficiency maxEE expression. Constraint (1) means that the transmission power of the source and information must not exceed its maximum available power threshold P MAX , and constraint (2) means that the initial energy of the relay is not considered In order to ensure uninterrupted communication, the relay must satisfy that the collected energy is greater than or equal to the energy consumed when forwarding information. Constraint (3) indicates that in order to ensure communication quality, the safe transmission rate must be higher than the set threshold R Q.
步骤S29,通过引入变量并根据非线性分式规划理论将非凸优化问题转化为一个D.C.优化问题,并计算最优解。In step S29, the non-convex optimization problem is transformed into a D.C. optimization problem by introducing variables and according to the nonlinear fractional programming theory, and the optimal solution is calculated.
具体地,根据上述公式3,通过证明
并引入变量y和z,再根据非线性分式规划理论,并定义新的变量
从而将该非凸优化问题转化为D.C.优化问题,因此,上述最大化能量效率的问题可以描述为:
Specifically, according to the above formula 3, it is proved that And introduce the variables y and z, and then define new variables according to the theory of nonlinear fractional programming Thus, the non-convex optimization problem is transformed into a DC optimization problem. Therefore, the above-mentioned problem of maximizing energy efficiency can be described as:
参考第二个实施例中,D.C.优化问题的求解过程,从而得出最优解,详情请参阅第二个实施例中D.C.优化问题的求解过程,此处不再赘述。Refer to the solution process of the D.C. optimization problem in the second embodiment to obtain the optimal solution. For details, please refer to the solution process of the D.C. optimization problem in the second embodiment, which will not be repeated here.
图5展示了本发明中继网络能量效率最优分配装置的一个实施例。在本实施例中,该中继网络能量效率最优分配装置包括划分模块10、参数获取模块11、收集能量计算模块12、传输速率计算模块13、能量消耗计算模块14、构建模块15和转化模块16。Fig. 5 shows an embodiment of the optimal distribution device for energy efficiency of the relay network of the present invention. In this embodiment, the relay network energy efficiency optimal distribution device includes a dividing module 10, a parameter obtaining module 11, a collected energy calculation module 12, a transmission rate calculation module 13, an energy consumption calculation module 14, a construction module 15 and a conversion module 16.
其中,划分模块10,用于基于预设分配的方式接收源端发送的信息和能量并转发信息至接收端;参数获取模块11,用于获取源端到接收端的信息传输时的相关功率参数、相关信道增益参数、相关电路损耗参数,以及自身、接收端和窃听端的加性高斯白噪声参数;收集能量计算模块12,用于根据相关功率参数、相关信道增益参数计算收集到的能量E;传输速率计算模块13,用于根据相关功率参数、相关信道增益参数和加性高斯白噪声参数计算源端到接收端的传输速率R;能量消耗计算模块14,用于根据相关功率参数、相关电 路损耗参数和能量E计算总能量消耗E
tot;构建模块15,用于根据传输速率R和总能量消耗E
tot构建一个以最大能量效率maxEE为目标的非凸优化问题;转化模块16,用于通过引入变量并根据非线性分式规划理论将非凸优化问题转化为一个D.C.优化问题,并计算最优解。
Among them, the dividing module 10 is used to receive the information and energy sent by the source end based on a preset allocation method and forward the information to the receiving end; the parameter obtaining module 11 is used to obtain related power parameters, Related channel gain parameters, related circuit loss parameters, and additive white Gaussian noise parameters of itself, the receiving end and the eavesdropping end; the collected energy calculation module 12 is used to calculate the collected energy E according to the related power parameters and the related channel gain parameters; transmission The rate calculation module 13 is used to calculate the transmission rate R from the source end to the receiving end according to the relevant power parameters, the relevant channel gain parameters and the additive white Gaussian noise parameters; the energy consumption calculation module 14 is used to calculate the relevant power parameters and the relevant circuit loss parameters And energy E to calculate the total energy consumption E tot ; the construction module 15 is used to construct a non-convex optimization problem with the maximum energy efficiency maxEE as the goal according to the transmission rate R and the total energy consumption E tot ; the transformation module 16 is used to introduce variables According to the theory of nonlinear fractional programming, the non-convex optimization problem is transformed into a DC optimization problem, and the optimal solution is calculated.
上述实施例的基础上,其他实施例中,预设分配的方式包括时间分配的方式或功率分配的方式。On the basis of the foregoing embodiment, in other embodiments, the preset allocation method includes a time allocation method or a power allocation method.
上述实施例的基础上,其他实施例中,如图6所示,当预设分配的方式为时间分配的方式时,划分模块用于将源端发送信息至接收端的传输时间划分为α
1T、α
2T、α
3T三个时间段,其中α
1+α
2+α
3=1,T为总传输时间,α
1T时间段内收集源端发送的能量,α
2T时间段内接收源端发送的信息,α
3T时间段内转发信息至接收端;
On the basis of the foregoing embodiment, in other embodiments, as shown in FIG. 6, when the preset allocation method is a time allocation method, the dividing module is used to divide the transmission time from the source end to the sink end as α 1 T , Α 2 T, α 3 T three time periods, where α 1 +α 2 +α 3 =1, T is the total transmission time, the energy sent by the source is collected during the α 1 T time period, and the α 2 T time period Receive the information sent by the source, and forward the information to the receiving end within the α 3 T time period;
参数获取模块11包括第一功率参数获取单元1100、第一信道增益参数获取单元1101、第一电路损耗参数获取单元1102和第一噪声参数获取单元1103。The parameter acquisition module 11 includes a first power parameter acquisition unit 1100, a first channel gain parameter acquisition unit 1101, a first circuit loss parameter acquisition unit 1102, and a first noise parameter acquisition unit 1103.
其中,第一功率参数获取单元1100,用于获取收集源端发送的能量时第n个子载波上源端的发送功率
接收源端发送信息时第n个子载波上的发送功率
转发信息至接收端时第n个子载波上源端的发送功率
其中n∈N,N为子载波的个数;第一信道增益参数获取单元1101,用于获取第n个子载波从源端到自身的信道增益
从自身到接收端的信道增益
以及自身到窃听端的信道增益
第一电路损耗参数获取单元1102,用于获取源端发送能量至自身时的电路损耗
源端发送信息至自身时的电路损耗
自身在转发信息时的电路损耗
和接收端在接收信息时的电路损耗
第一噪声参数获取单元1103,用于获取自身的加性高斯白噪声的方差
接收端的加性高斯白噪声的方差
和窃听端的加性高斯白噪声的方差
Wherein, the first power parameter obtaining unit 1100 is configured to obtain the transmit power of the source on the nth subcarrier when the energy sent by the source is collected The transmit power on the nth subcarrier when the receiving source sends information The transmit power of the source on the nth subcarrier when forwarding information to the receiving end Where n ∈ N, N is the number of subcarriers; the first channel gain parameter acquisition unit 1101 is used to acquire the channel gain of the nth subcarrier from the source to itself Channel gain from self to receiver And the channel gain from itself to the eavesdropper The first circuit loss parameter acquisition unit 1102 is used to acquire the circuit loss when the source sends energy to itself The circuit loss when the source sends information to itself Circuit loss when transmitting information And the circuit loss of the receiving end when receiving information The first noise parameter obtaining unit 1103 is configured to obtain the variance of its own additive white Gaussian noise Variance of additive white Gaussian noise at the receiving end And the variance of the additive white Gaussian noise
上述实施例的基础上,其他实施例中,如图7所示,当预设分配的方式为功率分配的方式时,划分模块用于设定源端发送信息和能量的功率分配比例为θ,并在前T/2时间内,源端向自身发送信息和能量,在后T/2时间内,自身将信息转发至接收端,T为总传输时间;On the basis of the foregoing embodiment, in other embodiments, as shown in FIG. 7, when the preset allocation method is the power allocation method, the dividing module is used to set the power allocation ratio of the source to send information and energy to θ, And in the first T/2, the source sends information and energy to itself, and in the latter T/2, it forwards the information to the receiving end, and T is the total transmission time;
参数获取模块11包括第二功率参数获取单元1110、第二信道增益参数获取单元1111、第二电路损耗参数获取单元1112和第二噪声参数获取单元1113。The parameter acquisition module 11 includes a second power parameter acquisition unit 1110, a second channel gain parameter acquisition unit 1111, a second circuit loss parameter acquisition unit 1112, and a second noise parameter acquisition unit 1113.
其中,第二功率参数获取单元1110,用于获取自身接收源端发送的信息和能量时第n个子载波上源端的发送功率
自身转发信息至接收端时第n个子载波上源端的发送功率
n∈N,N为子载波的个数;第二信道增益参数获取单元1111,用于获取第n个子载波从源端到自身的信道增益
从自身到接收端的信道增益
以及自身到窃听端的信道增益
第二电路损耗参数获取单元1112,用于获取源端发送信息和能量时的电路损耗
自身在转发信息时的电路损耗
接收端在接收信息时的电路损耗
第二噪声参数获取单元1113,用于获取加性高斯白噪声参数,加性高斯白噪声参数包括:自身的加性高斯白噪声的方差
接收端的加性高斯白噪声的方差
和窃听端的加性高斯白噪声的方差
Wherein, the second power parameter obtaining unit 1110 is used to obtain the transmit power of the source end on the nth subcarrier when it receives the information and energy sent by the source end. The transmit power of the source end on the nth subcarrier when it forwards information to the receiving end n ∈ N, N is the number of subcarriers; the second channel gain parameter obtaining unit 1111 is used to obtain the channel gain of the nth subcarrier from the source to itself Channel gain from self to receiver And the channel gain from itself to the eavesdropper The second circuit loss parameter acquisition unit 1112 is used to acquire the circuit loss when the source sends information and energy Circuit loss when transmitting information Circuit loss at the receiving end when receiving information The second noise parameter obtaining unit 1113 is configured to obtain additive white Gaussian noise parameters, and the additive white Gaussian noise parameters include: the variance of its own additive white Gaussian noise Variance of additive white Gaussian noise at the receiving end And the variance of the additive white Gaussian noise
关于上述实施例中中继网络能量效率最优分配装置各模块实现技术方案的其他细节,可参见上述实施例中的中继网络能量效率最优分配方法中的描述,此处不再赘述。For other details of the implementation of the technical solutions of the modules of the device for optimal distribution of energy efficiency in the relay network in the foregoing embodiment, reference may be made to the description of the method for optimal distribution of energy efficiency of the relay network in the foregoing embodiment, which is not repeated here.
图8展示了本发明又一个实施例提供的终端的示意框图,参见图8,该实施例中的终端包括:一个或至少两个处理器80、存储器81以及存储在该存储器81中并可在处理器80上运行的计算机程序810。处理器80执行计算机程序810时,实现上述实施例描述的中继网络能量效率最优分配方法中的步骤,例如:图2所示的步骤S1-步骤S7。或者,处理器80执行计算机程序810时,实现上述基于多模式集成的中继网络能量效率最优分配装置实施例中各模块/单元的功能,例如:图5所示模块10-模块16的功能。FIG. 8 shows a schematic block diagram of a terminal provided by another embodiment of the present invention. Referring to FIG. 8, the terminal in this embodiment includes: one or at least two processors 80, a memory 81, and the A computer program 810 running on the processor 80. When the processor 80 executes the computer program 810, it implements the steps in the method for optimal distribution of energy efficiency of the relay network described in the foregoing embodiment, for example: step S1-step S7 shown in FIG. 2. Or, when the processor 80 executes the computer program 810, it realizes the functions of the modules/units in the above-mentioned embodiment of the device for optimal distribution of energy efficiency in a relay network based on multi-mode integration, for example: the functions of module 10-module 16 shown in FIG. 5 .
计算机程序810可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器81中,并由处理器80执行,以完成本申请。一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述计算机程序810在终端中的执行过程。The computer program 810 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 81 and executed by the processor 80 to complete the application. One or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 810 in the terminal.
终端包括但不仅限于处理器80、存储器81。本领域技术人员可以理解,图8仅仅是终端的一个示例,并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如终端还可以包括输入设备、输出设备、网络接入设备、总线等。The terminal includes but is not limited to a processor 80 and a memory 81. Those skilled in the art can understand that FIG. 8 is only an example of the terminal, and does not constitute a limitation on the terminal. It may include more or less components than shown in the figure, or combine some components, or different components, such as a terminal. It can also include input devices, output devices, network access devices, buses, and so on.
处理器80可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 80 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
存储器81可以是只读存储器、可存储静态信息和指令的静态存储设备、随机存取存储器、或者可存储信息和指令的动态存储设备,也可以是电可擦可编程只读存储器、只读光盘、或其他光盘存储、光碟存储、磁盘存储介质或者其他磁存储设备。存储器81与处理器80可以通过通信总线相连接,也可以和处理器80集成在一起。The memory 81 can be a read-only memory, a static storage device that can store static information and instructions, a random access memory, or a dynamic storage device that can store information and instructions, or it can be an electrically erasable programmable read-only memory or a read-only optical disk. , Or other optical disk storage, optical disk storage, magnetic disk storage media or other magnetic storage devices. The memory 81 and the processor 80 may be connected through a communication bus, or may be integrated with the processor 80.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may be aware that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of modules or units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
本申请实施例还提供了一种存储介质,用于存储计算机程序,其包含用于执行本申请上述中继网络能量效率最优分配方法实施例所设计的程序数据。通过执行该存储介质中存储的计算机程序,可以实现本申请提供的中继网络能量效率最优分配方法。An embodiment of the present application also provides a storage medium for storing a computer program, which contains program data designed for executing the foregoing embodiment of the method for optimal distribution of energy efficiency in a relay network of the present application. By executing the computer program stored in the storage medium, the optimal distribution method for the energy efficiency of the relay network provided in this application can be realized.
集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序810来指令相关的硬件来完成,计算机程序810可存储于一计算机可读存储介质中,该计算机程序810在被处理器80执行时,可实现上述各个方法实施例的步骤。其中,计算机程序810包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, this application implements all or part of the processes in the above-mentioned embodiment methods, and can also be completed by instructing relevant hardware through a computer program 810. The computer program 810 can be stored in a computer-readable storage medium. When executed by the processor 80, 810 may implement the steps of the foregoing method embodiments. The computer program 810 includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. Computer-readable media may include: any entity or device capable of carrying computer program code, recording media, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access Memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal, software distribution medium, etc. It should be noted that the content contained in computer-readable media can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, computer-readable media does not include It is electric carrier signal and telecommunication signal.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts between the various embodiments, refer to each other. can. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
以上对发明的具体实施方式进行了详细说明,但其只作为范例,本发明并不限制于以上描述的具体实施方式。对于本领域的技术人员而言,任何对该发明进行的等同修改或替代也都在本发明的范畴之中,因此,在不脱离本发明的精神和原则范围下所作的均等变换和修改、改进等,都应涵盖在本发明的范围内。The specific embodiments of the invention are described in detail above, but they are only examples, and the present invention is not limited to the specific embodiments described above. For those skilled in the art, any equivalent modifications or substitutions made to the invention are also within the scope of the invention. Therefore, equivalent changes, modifications and improvements made without departing from the spirit and principle of the invention Etc., should be covered within the scope of the present invention.