scieee AI-readable full text Open interactive document viewer

Resource Allocation and Computation Offloading for Wireless Powered Mobile Edge Computing

Chen, Jun,Chang, Zheng,Guo, Wenlong,Guo, Xijuan

Full text

This is a self-archived version of an original article. This version may differ from the original in pagination and typographic details. Author(s): Title: Year: Version: Copyright: Rights: Rights url: Please cite the original version: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/ Resource Allocation and Computation Offloading for Wireless Powered Mobile Edge Computing © 2022 by the authors. Licensee MDPI, Basel, Switzerland. Published version Chen, Jun; Chang, Zheng; Guo, Wenlong; Guo, Xijuan Chen, J., Chang, Z., Guo, W., & Guo, X. (2022). Resource Allocation and Computation Offloading for Wireless Powered Mobile Edge Computing. Sensors, 22(16), Article 6002. https://doi.org/10.3390/s22166002 2022 Citation: Chen, J.; Chang, Z.; Guo, W.; Guo, X. Resource Allocation and Computation Offloading for Wireless Powered Mobile Edge Computing. Sensors 2022,22, 6002. https:// doi.org/10.3390/s22166002 Academic Editor: Antonio Corradi Received: 5 July 2022 Accepted: 9 August 2022 Published: 11 August 2022 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). sensors Article Resource Allocation and Computation Offloading for Wireless Powered Mobile Edge Computing Jun Chen 1, Zheng Chang 2,3 , Wenlong Guo 1and Xijuan Guo 1,* 1The Key Laboratory for Computer Virtual Technology and System Integration of Hebei Province, Colleage of Information Science and Engineering, Yanshan University, Qinhuangdao 066004, China 2School of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu 610056, China 3Faculty of Information Technology, University of Jyväskylä, P.O. Box 35, 40014 Jyväskylä, Finland *Correspondence: [email protected]; Tel.: +86-137-0323-8784 Abstract: In this paper, we investigate a resource allocation and computation offloading problem in a heterogeneous mobile edge computing (MEC) system. In the considered system, a wireless power transfer (WPT) base station (BS) with an MEC sever is able to deliver wireless energy to the mobile devices (MDs), and the MDs can utilize the harvested energy for local computing or task offloading to the WPT BS or a Macro BS (MBS) with a stronger computing server. In particular, we consider that the WPT BS can utilize fullor half-duplex wireless energy transmission mode to empower the MDs. The aim of this work focuses on optimizing the offloading decision, full/half-duplex energy harvesting mode and energy harvesting (EH) time allocation with the objective of minimizing the energy consumption of the MDs. As the formulate problem has a non-convex mixed integer programming structure, we use the quadratically constrained quadratic program (QCQP) and semidefinite relaxation (SDR) methods to solve it. The simulation results demonstrate the effectiveness of the proposed scheme. Keywords: mobile edge computing; offloading; wireless power transfer; full-duplex; half-duplex 1. Introduction It is expected that future wireless networks can not only provide data and voice services to a massive number of MDs but also bring computational and artificial intelligence (AI) capabilities to the MDs. However, due to the size limitation, the MDs are typically constrained by computing capacity, storage capacity and battery capacity, which will prevent MDs from performing seamless computational tasks. Therefore, tackling the energy and battery capacity challenges urgently demand for developing new wireless network paradigms [1]. With the development of Internet technology and mobile network, the data generated by MDs and application have significantly increased [ 1 ]. In addition, the increasing demand for computing and data service from massive MDs have urged the development of a wireless network, which integrates the computing capability into the wireless network. Cloud computing emerges as a new computing paradigm which provides computing services to a large amount of MDs. The cloud computing server has powerful computing processing capacity, and MDs can offload computing tasks to the cloud server for computing processing. However, the cloud computing servers are usually distant from the MDs [ 2 ]. Therefore, during the process of task transmission, a large delay and a large amount of energy consumption will be induced, which is unfavorable to solving real-time task processing with the low time delay requirement of MDs. In order to provide MDs with more proximity, lower latency and reduced energy consumption for computing services, MEC has been attracted considerable attention. MEC has the potential to provide computing capabilities close to the MDs within the radio access Sensors 2022,22, 6002. https://doi.org/10.3390/s22166002 https://www.mdpi.com/journal/sensors Sensors 2022,22, 6002 2 of 21 network, aiming to reduce transmission delay [ 3 , 4 ], improve network operational efficiency, and promote the service experience. In particular, MEC can be thought of as a cloud computing server running on the network edge to perform specific tasks that traditional network infrastructure cannot provide [ 5 ]. The applications or intensive computation tasks can be offloaded in a dynamic or statical mode to the resource-rich edge servers for execution, which helps reduce the transmission delay and decrease energy consumption so as to improve the quality of service [ 6 , 7 ] in a better way. For the partitioning of user tasks, it is possible to offload computational processing in binary and partial task divisions. In MEC systems, a large amount of existing works focus on optimizing offloading process based on the system energy consumption, time delay, and transmission throughput. It is also worth noticing that the MEC server can allocate computing resources to user tasks to improve the energy efficiency and reduce the overall energy consumption of the system [ 8 ]. Meanwhile, how to provide sustainable and efficient power supply for MDs to execute long-term task processing has also become a challenge in the current MEC network system. Due to the limitation of battery capacity, it is difficult or even impossible for MDs to maintain the processing of computing tasks for a long time. In order to solve the issue of energy supply, wireless energy harvesting is a promising technology which has been widely developed in MEC systems. In general, EH plays a crucial role in addressing the issue of battery capacity constraint and furthermore to support MDs to realize green energyoriented and sustainable computing offloading services [ 9 ]. MDs with EH technology are capable of harvesting green energy from solar panels, wind and wireless energy sources for task offloading and locally computing. WPT is able to take radio frequency signals as energy sources, and it provides energy for MDs [ 4 ]. Therefore, integrating EH and WPT technology into the MEC network system enables systems and MDs to perform long-term stable and sustainable computation, and it also has the potential to improve computing performance [10]. Although quite a lot of researchers have investigated EH, most of these researchers have only considered general EH methods. Comparatively, there is a relative lack of studies that focus on energy-harvesting techniques based on full-duplex and half-duplex modes, and few studies have investigated three-layer heterogeneous MEC network systems simultaneously. Therefore, it is desirable to jointly consider the resource allocation and decision schemes based on a novel full/half-duplex EH modes enabled with heterogeneous MEC network systems. In this work, we primarily consider a WPT model based on the full/half-duplex transmission technique, which is combined with the designed three-tier heterogeneous MEC architecture. The aim of this work seeks to minimize the overall energy consumption and optimize the offloading decision, EH time allocation and mode selection. We formulate the optimization program as a mixed integer programming problem, which is NP-hard. To address the formulated problem, the main objective can be reformulated as a non-convex quadratically constrained quadratic program (QCQP) form [ 11 ], and the separable SemiDefinite Relaxation (SDR) method can be adopted to find the optimal offloading decision strategy and the EH time allocation [12]. Comparing with the recent research work, the main research work and the key contributions of this paper can be summarized as follows: • In the proposed MEC system, we consider full-duplex and half-duplex WPT modes and analyze the energy consumption problems under these two different energy transfer modes separately with the aim to derive the optimal mode selection strategy. • In particular, we design a three-tier heterogeneous MEC offloading network architecture that considers the multi-level computational task offloading problem, where the tasks of MDs can be executed locally, offloaded to a server with energy source for computing, or transformed to a remote MEC server for processing; • In addition, we investigate an optimization problem involving the minimization of transmission and computational energy consumption based on complete time and energy constraints, which is a non-convex mixed-integer programming problem. We Sensors 2022,22, 6002 3 of 21 derive the optimal offloading decision strategy and WPT mode by adopting QCQP and SDR methods; • Moreover, we analyze the optimal time of EH for MDs under the half-duplex energy transfer mode with a linear form of WPT. Finally, we propose an iterative algorithm with the aim to solve the joint optimal offloading decision, time allocation of WPT under the half-duplex EH mode, as well as the mode selection. The reminder of this paper is organized as follows. Section 2is concerned with giving a brief review of relevant research work. In Section 3, we present the system model. The problem formulation and constraints are proposed in Section 4. In Section 5, we demonstrate the simulation results. Finally, Section 6concludes this research and discusses future directions. 2. Related Work MEC technology has been widely used in the communication field and different scenarios to provide services to network edge users by taking advantage of mobile edge computing servers closer to users and abundant computing resources [ 13 ]. To solve the resource allocation problem in a dynamic computational offload environment, in [ 14 ], the authors used a deep reinforcement learning-based approach and proposed a deep deterministic policy gradient (DDPG) dynamic policy to solve the dynamic offload, computational offload and resource allocation problems. With the development of blockchain technology [ 15 ], MEC technology is used in blockchain, and MEC technology can be used to solve the challenge of insufficient computational power of MDs in mining tasks [ 16 ]. MEC technology has been further applied to vehicle networking for driver assistance services to improve the safety and intelligence of vehicle driving [ 17 ]. However, how to ensure that MDs in the MEC network system perform a long time computing task offloading, maintain the MDs with enough power for computing task offloading, and guarantee that the MEC network system can operate for a long time is also one of the main challenges currently faced. More recently, there has been a growing research interest in exploring the application of EH and WPT in MEC systems [ 1 ]. In [ 18 ], the authors proposed an actor–critic learning algorithm based on mixed decision making, and a deep reinforcement learning algorithm of multi-MD mixed actor–critic for dynamic computing and offloading was proposed. Similarly, in [ 19 ], a deep reinforcement learning-based online offloading algorithm was proposed with the goal of maximizing the weighted sum of computational rates and optimizing the time allocation for the user task offloading decisions scheme and wireless EH. In the single-user MEC system, the authors propose an energy-efficient resource allocation scheme for WPT and task allocation for the local and offloading computation of MDs. Considering the unpredictability of EH and the situation of dynamic offloading of computation tasks, in [ 6 ], the authors presented an online algorithm of the Lyapunov method to optimize the stability of the battery queue and minimize the power consumption. Considering the nonlinear energy collection mode [ 20 ], the authors investigated the resource allocation to maximize the computational efficiency and optimized the EH time, the CPU cycle frequency of the local computation, the offloading time, and the power allocation to obtain the optimal solution. In [ 21 ], in order to minimize the system cost, the authors proposed a distributed optimization problem to solve the optimal offloading, charging and discharging energy and renewable energy utilization rate of MBSs. In [ 22 ], the authors investigated the computational offloading and resource allocation problem in IoT networks, which simultaneously support end-device mobility and energy harvesting, and they proposed a Lyapunov optimization and semi-definite programming (SDP)-based online mobility-aware offloading and resource allocation algorithm. Several studies have revealed that wireless information and power transfer technology provides a potential solution to increase the data transmission rate and long-term service of user equipment in the wireless network. Meanwhile, EH technology can also be implemented to enhance the energy efficiency of network [ 23 , 24 ]. In [ 23 ], the au- Sensors 2022,22, 6002 4 of 21 thors investigated resource allocation for the orthogonal frequency division multiplexing (OFDM)-based nonorthogonal multiple access (NOMA) system empowered by WPT technology with the aim to obtain secure and energy efficient transmission. Similar to [ 24 ], the authors researched an energy-efficient resource allocation for the WPT-enabled orthogonal frequency division multiple access (OFDMA) multicell networks. In order to achieve long battery life, in [ 25 ], the authors introduce an online learning algorithm with a distributed execution approach for computational offloading in WP-MEC networks, which aims to minimize the long-term average task completion delay of mobile clients. In [ 26 ], the authors combined social networking techniques and EH techniques for enhancing the performance of fog computing systems. In [ 27 ], the authors introduced a wireless energy harvesting (WEH)-based industrial Internet of Things (CIIoT) to harvest RF energy from primary user signals, and they proposed energy-efficient resource allocation under different spectrum access methods to maximize the average transmission rate of the CIIoT while maintaining energy-saving requirements. In [ 28 ], the authors proposed an MEC offloading scheme for cellular IoT networks with a large number of NOMA-assisted energy harvesting MDs based on social relationships among the user communication devices to optimize the processing mode selection, device clustering, channel and power allocation for the purpose of maximizing the total network rate and under the constraints of power, energy and delay. With the application and development of wireless networks, it has become an important research field to apply full-duplex and half-duplex technology to the current communication system based on wireless energy transform technology. To solve the resource allocation problem in multi-access edge computation offloading, the full-duplex assisted multi-access edge computation offloading system is investigated in [ 29 ], and they proposed a step-wise resource allocation method for enhancing the performance of the computation offloading subject to data rate constraint. In [ 30 ], the authors studied an unmanned aerial vehicle (UAV) wireless communication system with EH, where the UAV transmits energy to MDs in half-duplex or full-duplex manner, and the user first collects energy and then offloads the data to the UAV, with the goal of minimizing the total energy consumption of the UAV and achieving minimal delay requirement of the data transmission of the user. Considering the security of wireless communication system, in [ 31 ], the authors examined the energy-constraint secrecy performance of a wireless network with passive eavesdroppers and wireless information and power energy transmission, and they proposed a full-duplex automatic jamming scheme. In [ 32 ], the authors investigate the problem of opportunity mode selection and user scheduling in both single-carrier and multi-carrier OFDM full-duplex systems with the objective of maximizing the system utility (e.g., sum rate) for long-term and short-term time fairness. 3. System Model The three-tier WPT MEC system model is shown in Figure 1. The system model consists of multiple MDs, WPT BS, and MBS. The WPT BS transmits energy to the neighboring users in a broadcast mode, and each MD has a wireless energy-harvesting capability, and the harvested energy is stored. The MD is closer to the WPT BS, while the distance to the MBS is relatively long. Throughout this paper, we use U= { 1, 2, 3 . . . , i , . . . , U} , i∈U to represent the set of MDs. Each MD i is equipped with an EH battery, and the computing capacity of i is defined as Fl i∈[ 0, Fmax i] . Furthermore, MDs have full/half-duplex EH modes, and the harvested energy will be stored in the battery. The WPT BS is represented by WPT BS and adopts full-duplex or half-duplex mode to carry out WPT for MDs, and it can also provide computing services with computing capacity FR . In order to enhance the computing capacity of the system, a server with powerful computing capacity is integrated into MBS, and the computing capacity of the MBS server is represented by FM . In the three-tier heterogeneous MEC system, MDs are able to choose to perform local computing, either offloading computing tasks to a server at the WPT BS for executing or offloading to a remote MBS server for processing. The uplink between the MD and the WPT BS or MBS employs a wireless connection for the communication and offloading of computation tasks, Sensors 2022,22, 6002 5 of 21 while in the downlink, the WPT BS and MBS return the processed computation task results to the MD, and since the data size of the computation results is relatively small, hence, we ignore the transmission delay and communication energy consumption of the computation result return in the downlink in this case. MBS WPT BS Mobile device Task offloading Energy harvesting Self-interference  Figure 1. MEC offloading system model for wireless energy transmission. In the proposed MEC system, we suppose that the task of MD i is completed within a time interval ti . We assume that MDs take the EH and task processing simultaneously based on full-duplex mode. In half-duplex mode, the MD i performs EH during time slot τi firstly, and then, the task will be processed within time slot ti−τi . We express the data size of the computing task for MD i in terms of di , and w represents the number of CPU cycles required to calculate each bit of data. The term Ai= [ai,l , ai,R , ai,M] , i∈U will be used in this paper to refer the set of computing task offloading decision factors. The computational tasks of each MD can be optionally computed locally or be offloaded to the wPT BS or MBS server for computing. Specifically, ai,l= 1 represents the selection factor calculated locally by the MDs, ai,R= 1 means that the MD i chooses the WPT BS for offloading computation, and ai,M= 1 indicates that the MDs choose the MBS server for the offloading process; otherwise, ai,l=ai,R=ai,M= 0. The key notation can be found in Table 1. Due to the fact that the computation task of the MDs can only choose one of the offloading decisions for computing, we can obtain the offloading decision strategy constraints as follows: ai,l+ai,R+ai,M=1, ai,l,ai,R,ai,M∈ {0, 1},∀i∈U. (1) Sensors 2022,22, 6002 6 of 21 Table 1. Summary of the key notations. Notations Meanings UThe set of MDs in the system AiThe set of offloading decision of MD i RThe representation of WPT BS Fl iThe computing capacity of MD i FRThe computing capacity of WPT BS FMThe computing capacity of MBS server diThe data size of MD’s computing task wRepresents the number of CPU cycles required to calculate each bit of data ai,lThe decision for local computing of MD i ai,RImplies the MD ito select the server of WPT BS to calculate ai,MDenotes that the MD iselects the MBS server for execution ωThe number of effective capacitors related to chip structure σThe path loss factor pi,RThe transmitted power of the MD i gi,RThe wireless channel transmission gain between MD iand WPT BS Bi,RThe wireless transmission bandwidth between MD iand WPT BS DR iThe distance between MD iand WPT BS Di,MThe distance between the MD iand the MBS gi,MGain of wireless channel transmission between the MD iand MBS Bi,MThe wireless transmission bandwidth between MD with the MBS pi,MRepresents the wireless transmission power of the MD ito MBS ϕ Represents the amount of energy consumed per CPU cycle by the MBS server to perform computing tasks for MDs PRThe power of energy transmission tiThe time slot τiThe time of EH in half-duplex mode ςThe efficient of EH IThe Gaussian noise 3.1. Local Computing Mode When the local computing is adopted, the processing capacity of MDs can be dynamically adjusted according to the size of the task and the completion time of the task by employing dynamic voltage and frequency expansion technology [ 18 , 33 ]. We assume that the computing capability Fl i of the MD i remains unchanged. Accordingly, the time for local computation processing can be defined as follows: Dt i=diw Fl i . (2) Furthermore, the energy consumption of local computing of the MD i can be expressed as follows: Et i=ωdiw(Fl i)2, (3) Sensors 2022,22, 6002 7 of 21 where ω is the number of effective capacitors related to chip structure [ 34 ], and w represents the number of CPU cycles required to calculate each bit of data. 3.2. WPT BS Server Model Given that the WPT BS is capable of transmitting energy to the MDs via wireless transmission during the computation offloading, in the current system, we consider the use of half-duplex and full-duplex methods for energy transmission. The distance between MD i and WPT BS is DR i , and the channel gain between MD i and WPT BS is gi,R= (Di,r)σ , where σ=−4 is the path loss factor. 3.2.1. Half-Duplex Mode In the half-duplex mode [ 30 ], WPT BS firstly transmits energy to the MD i in the time τi , where 0 <τi<ti is the time allocation for EH under half-duplex mode. Then, the computational task of MD i will be processed locally or offloaded to the server during the remaining time (ti−τi). With the half-duplex mode, the achievable uplink transmission rate between the MD i and the WPT BS can be given by: rHD i,R=Bi,Rlog(1+pi,Rgi,R I), (4) where pi,R is the transmit power of MD i and and Pi,R≤Pmax i . I is the noise power, Bi,R is the transmission bandwidth. The harvested energy and transmission energy consumption in half-duplex mode are respectively calculated by [35], eHD i=ςPRτi, (5) EHD i,R=pi,Rdi rHD i,R . (6) 3.2.2. Full-Duplex Mode In full-duplex mode, WPT BS transmits wireless energy to the MD i , and the transmit power is PR . Meanwhile, the MD i can choose to offload the task to the base station for computing within the time through the harvested energy. We consider linear EH in the proposed MEC network system; thus, during time ti , the energy harvested by the MD i can be given by [35] eFD i=ςPRti. (7) In full-duplex WPT mode, the WPT BS can simultaneously transmit to and receive task offloading from the MDs. In this case, self-coherent interference is generated. Then, the achievable uplink transmission rate between the MD iand the WPT BS becomes: rFD i,R=Bi,Rlog(1+pi,Rgi,R I+σPR ). (8) PR denotes the transmit power of the WPT BS, and σ denotes the effective selfinterference coefficient in full-duplex mode [ 30 ]. The transmission energy consumption of MD ifor transmitting to WPT BS can be expressed by EFD i,R=pi,Rdi rFD i,R . (9) 3.3. MBS Server Model In the considered system, MDs can also choose to offload computation tasks to an MBS server. The server of MBS is integrated with powerful computing units. Let us assume Sensors 2022,22, 6002 8 of 21 that the distance between the MD i and the MBS is Di,M , and the channel gain between the MD iand MBS is gi,M= (Di,M)σ. The uplink transmission rate is given as follows: ri,M=Bi,Mlog(1+pi,Mgi,M I), (10) where pi,M represents the transmit power of MD i , and Bi,M is the transmission bandwidth. The transmission energy consumption is given by: Ew i,M=pi,Mdi ri,M . (11) The computing energy consumption of the MBS server can be expressed by: Ec i,M=ϕdiw FM , (12) where ϕ represents the amount of energy consumed per CPU cycle by the MBS server to perform computing tasks for MDs. 4. Problem Formulation In this section, we formulate an optimization problem with the aim to minimize the overall energy consumption of computation tasks of MDs. We optimize the offloading decision strategy Ai , EH time allocation {τi} , and full/half-duplex mode optimal decision xHD i , xFD i based on the energy constrained of MD i and the delay of the computation task. Mathematically, the optimization problem is shown as follows: P1 : min {Ai,xHD i,xFD i,τi} U ∑ i=1 ai,lωdiw(Fl i)2+ai,R(xHD ipi,Rdi rHD i,R +xFD ipi,Rdi rFD i,R +ωdiw FR ) + ai,M(pi,Mdi ri,M +ϕdiw FM ) C1 : ai,l+ai,R+ai,M=1, C2 : {ai,l,ai,R,ai,M} ∈ {01}, C3 : xHD i+xFD i=1, C4 : {xHD i,xFD i} ∈ {0, 1}, C5 : xFD iςPRti+xHD iςPRτiti−ai,lωdiw(Fl i)2−ai,R(xHD ipi,Rdi rHD i,R +xFD ipi,Rdi rFD i,R )−ai,Mpi,Mdi ri,M ≤0. C6 : 0 ≤τi≤ti, C7 : FR≤Fmax R, C8 : FM<Fmax M, C9 : Fl i≤Fmax i, C10 : xFD iTF i≤ti, C11 : xHD iTH i≤ti−τi, (13) where TF i=ai,ldiw Fl i +ai,R(di rFD i,R +diw FR) + ai,M(di ri,M+diw FM) , and TH i=ai,ldiw Fl i +ai,R(di rHD i,R +diw FR) + ai,M(di ri,M+diw FM). C 1 and C 2 represent the constraints of the offloading decision of MD i . C 3 and C 4 indicate the EH mode of MD i , xHD i indicates that the MD selects a half-duplex EH mode, xFD i indicates that the MD i selects a full-duplex EH mode, and only one of the EH modes decision can be selected. C 5 makes sure that the energy consumption is less than the harvested energy. C 6 denotes the time allocation for EH with half-duplex mode. C 7– C 9 are utilized to guarantee that the computing resources allocated to an MD should be limited. C 10 indicates that the task processing latency for different task computation and offloading Sensors 2022,22, 6002 15 of 21 However, in problem P 7 0 , the rank constraint (45) is the only non-constraint. Therefore, we will relax problem P 7 0 into a semi-definite programming problem by dropping the rank constraint as follows: P700 : min XTr(QX) s.t.C300,C400,C500,C1000,C1100,C15, C16. (46) Now, we have reformulated the problem into a standard convex optimization problem, and it can be solved in polynominal time with standard CVX tools such as SeDuMi [36]. 4.3.3. Full/Half-Duplex Mode Decision Extraction In this part, we extract a feasible solution x from the global optimal solution X∗ of the above problem, and we obtain the optimal offloading decision in feasible solution x according to the method proposed in [39,40]. According to the definition of X , we know that only the submatrix of X∗ whose topmost coordinate is 2 N× 2 N , defined as X∗ , is necessary to obtain the optimal full/half-duplex decision x , and that all diagonal elements of X0∗ are positive numbers from 0 to 1. We define p= [p1, f,p1,h, . . . , pU,f,pU,h]T∆ =diag(X0∗) , where each term of p represents the probability of corresponding term of xibeing 1. In order to satisfy xHD i+xFD i= 1, we define Ki,f=pi,f( 1 −pi,h) , and based on this, the probabilities of full/half-duplex are pi,f=Ki,f/(Ki,f+Ki,h) and pi,h=Ki,h/(Ki,f+Ki,h) , respectively. According to the above solution, the full/half-duplex EH mode decision of MD i is given by the following formula: Ωi=(1, 0) (0, 1). (47) Ωi= (1, 0)means that we choose half-duplex mode with probability pi,f; Ωi= (0, 1)means that we choose full-duplex mode with probability pi,h. By randomly setting the value of the vector according to the probabilities in (47), P6 can be resolved, and we can obtain the offloading decisions xHD i,xFD i. 4.4. Algorithm Analysis To this end, we design an algorithm for optimizing the offloading decision strategy, EH time allocation and full/half-duplex mode optimization based on the proposed approach. First of all, the system parameters of computation tasks and network are initialized. Since the offloading decision is randomly obtained based on the obtained probability, we can run the aforementioned procedure several times to obtain a more precise decision. Based on the given EH mode xi and EH time allocation τi , we can obtain An i , which is denoted as the offloading decision for the n th time. Then, based on the An i and τi , we can perform EH mode optimization. After that, based on An i and xin , we can carry out half-duplex EH time allocation, and the solution with smallest energy consumption target value is the final solution. The complexity of the internal for-loop is O(N) , and the external iterative loops are iterations needed are O(N6) and O(N4) , so the overall complexity is calculated as O(N7) = O((N6+N4)N). We present the overall algorithm in Algorithm 1. Sensors 2022,22, 6002 16 of 21 Algorithm 1 Jointly optimize the computation offloading decision, EH time allocation and mode selection 1: Initialize: 2: Initialize ti,Fl i,FR,FM,di,pi,R,pi,M,PR. 3: Initialize all the matrixes involved in P300 and P700; 4: Iteration: 5: Solve the SDR problem P 3 00 by using the standard CVX tool SeDuMi and to obtain optimal solution of V0∗. 6: Extract the top left corner 3 N× 3 N sub-matrix V0∗ from matrix V∗ and define the values of diagonal elements in V0∗as pr= [pr1,l,pr1,R,pr1,M, . . . , prU,l,prU,R,prU,M]T. 7: Solve the SDR problem P 7 00 by using the standard CVX tool SeDuMi and to obtain optimal solution of X0∗. 8: Extract the top left corner 2 N× 2 N sub-matrix X0∗ from matrix X∗ , and define the values of diagonal elements in X0∗ as p= [p1,f,p1, f, . . . , pU,f,pU,h]T. 9: for l=1, 2, . . . , Ldo 10: Extract Ain from pr(n)= [pr1,l , pr1,R , pr1,M , . . . , prN,l , prU,R , prU,M]T(n) according to (25). 11: Extract xinfrom p(n) = [p1,f,p1,h, . . . , pU,f,pU,h]T(n)according to (47). 12: Perform EH time allocation {τi(n)}based on half-duplex mode, respectively. 13: Compare the objective value of all the N solutions, and select the solution with minimum objective value. 14: end for 15: Output: The optimal solutions of the offloading strategy A∗ i , EH time allocation τ∗ i and the EH mode scheme x∗ i. 5. Numerical Results In this section, we conduct extensive simulations to verify the feasibility and superiority of the proposed scheme. In this simulation, we used a hardware setup with a desktop computer with 8 G memory capacity, hard disk data size of 1 T, 3.20 GHz CPU frequency, and 64-bit Windows system as the operating system. The software used was MATLAB software for the simulation experiments. We set the number of MDs to 10, one WPT BS, and a macro base station with an integrated powerful server. We set the data size for any task between 10 and 110 KB, and the maximum transmission power of MDs was 30 dbm. The bandwidth size between the MDs and the WPT BS was set to be 20 MHZ , and the bandwidth between the MDs and the MBS was 50 MHZ. The average distance between the MDs and the WPT BS was 100 m, and the maximum distance between the MDs and the MBS is 500 m. We set the transmission power of the WPT BS as 40 dbm. In Figure 2, we plot the energy consumption of the computation tasks with different data sizes when adopting different computing strategies. From Figure 2, we can see that the energy consumption of all different computation methods increases as the size of the task keeps increasing. Under the local computing approach, the MD is limited by the battery capacity and computing capability, which consumes more energy compared to offloading the task to WPT BS and the MBS server for computing. Self-interference will be generated when MDs employ full-duplex EH technology, which affects the transmission rate of task offloading, thus increasing the transmission energy consumption during task offloading. Sensors 2022,22, 6002 17 of 21 Figure 2. The energy consumption vs. different task size and different task computing. In Figure 3, we show the effect of the distance between the MD and the BSs on the energy consumption of MD. As shown in this figure, it can be found that the computational energy consumption of the task does not vary with distance when the MD chooses to compute locally. On the contrary, when the MD chooses to offload to the WPT BS or the MBS for computing, the transmission energy consumption during task offloading increases as the distance between the MDs and the BS increases. When the MD selects full-duplex mode for EH, it will reduce the data transmission rate and thus requires more transmission energy consumption because the full-duplex mode receives and transmits wireless signals at the same time. However, under the half-duplex mode, MDs will harvest energy at first, and then, the task will be offloaded to servers for computing. It can also be found that the MDs that offload to the MBS consume less energy because the channel bandwidth between the MDs and the MBS is larger than the bandwidth between the WPT BS and the MD. Figure 3. Energy consumption vs. different distance between MDs with BS servers. Moreover, in Figure 4, we present a three-dimensional diagram of the energy consumption by changing the distance between the MDs and WPT BS as well as the task data size. Such a phenomenon indicates that the energy consumption of the computation task Sensors 2022,22, 6002 18 of 21 becomes larger as the distance between the MD and the WPT BS increases. Meanwhile, as the data size of the computation task increases, the energy consumption for computation task offloading and task processing tends to increase. Figure 4. Energy consumption vs. different distances and data sizes of tasks. In Figures 5and 6, we describe the transmission rate of computation task offloading data and the EH by MD regarding the number of MDs in the network system proposed in the paper under the full-duplex EH technique based on the MD. We assume that the transmission power of the WPT BS is PR={ 8 w , 10 w , 12 w} . From Figure 5, we can observe that as the number of MDs increases, the task offloading rate between the MDs and the WPT BS decreases subsequently. This is because under the full-duplex EH model, selfinterference is easily generated, which increases the interference of computation task offloading in the wireless channel and thus decreases the rate of data transmission. It can be seen from Figure 6that as the number of MDs increases, the offloading transmission rate decreases, which increases the offloading time. In order to complete the task within the maximum allowed delay, the MDs need to harvest more energy provided by the WPT BS. It can be seen from both Figures 5and 6that in order to increase the offloading rate, the transmission power between the MDs and the WPT BS needs to be increased. Figure 5. Energy consumption vs. the number of MDs. Sensors 2022,22, 6002 19 of 21 Figure 6. Energy consumption vs. the number of MDs. In Figure 7, we plot the harvested energy of the MDs based on full-duplex and half-duplex mode. From Figure 7, we can see that the harvested energy by the MDs in fullduplex and half-duplex modes increases linearly with the increment of time. In full-duplex mode, the MDs can perform task offloading at the same time or perform EH during local computation, while in half-duplex mode, the MDs performs EH before task offloading and computation, which will reduce the time for EH, so more energy is harvested in full-duplex mode than in half-duplex mode. In the half-duplex mode, when the MD adopts local computing, the time for task processing increases due to the limited computing capacity of MD, thus reducing the time for EH. On the contrary, when the MDs choose to offload to the WPT BS and MBS server for task computation, the MBS server has a powerful task processing capacity and the time for offloading and computation is reduced; then, the time for EH will increase, and more energy can be obtained. Figure 7. Energy consumption v.s. the time for EH. Sensors 2022,22, 6002 20 of 21 6. Conclusions In this paper, we have considered a three-tier heterogeneous MEC based on an intelligent network system for offloading energy harvesting. The system model consists of MDs, WPT BS, and MBS integrated with powerful servers, where tasks generated by the user’s MD can be computed locally or offloaded to the wireless energy supply base station servers and the MBS server for computation. In this work, the full/half-duplex energy harvesting-based technology is adopted. To minimize the overall energy consumption for task offloading and computation in heterogeneous network systems, the computation task offloading decision, the energy-harvesting time in full/half-duplex mode, and the energy-harvesting mode selection decision for full/half-duplex is optimized. We show that this optimization problem is a non-convex separable QCQP, which is an NP-hard problem, and the SDR method and the binary recovery method are employed to obtain the optimal decisions while solving for the optimal time resource allocation in different energyharvesting modes. Simulation results showed that the proposed method and algorithm can achieves the optimal solution. Furthermore, the joint dynamic computation offloading of the computation task and mobility of MDs which based on WPT-based MEC network system is one of the interest for future research. Author Contributions: Conceptualization, J.C. and Z.C.; methodology, J.C.; software, J.C.; validation, J.C., Z.C. and X.G.; formal analysis, J.C., Z.C.; investigation, J.C., Z.C.; resources, W.G.; writing—original draft preparation, J.C.; writing—review and editing, J.C., Z.C., X.G. and W.G.; supervision, X.G.; funding acquisition, X.G. All authors have read and agreed to the published version of the manuscript. Funding: This research was funded by Innovation Capability Improvement Plan Project of Hebei Province of funder grant number 22567626H. Institutional Review Board Statement: Not applicable. Informed Consent Statement: Not applicable. Data Availability Statement: Not applicable. Conflicts of Interest: The authors declare no conflict of interest. References 1. Mao, Y.; You, C.; Zhang, J.; Huang, K.; Letaief, K.B. A Survey on Mobile Edge Computing: The Communication Perspective. IEEE Commun. Surv. Tutor. 2017,19, 2322–2358. [CrossRef] 2. Liu, L.; Chang, Z.; Guo, X.; Mao, S.; Ristaniemi, T. Multi-objective Optimization for Computation Offloading in Fog Computing. IEEE Internet Things J. 2018,5, 283–294. [CrossRef] 3. Huang, T.; Lin, W.; Hong, X.; Wang, X.; Wu, Q.; Li, R.; Hsu, C.-H.; Zomaya, A.Y. Adaptive Processor Frequency Adjustment for Mobile-Edge Computing with Intermittent Energy Supply. IEEE Internet Things J. 2022,9, 7446–7462. [CrossRef] 4. Han, J.; Lee, G.H.; Park, S.; Choi, J.K. Joint Subcarrier and Transmission Power Allocation in OFDMA-based WPT System for Mobile Edge Computing in IoT Environment. IEEE Internet Things J. 2022,9, 15039–15052. [CrossRef] 5. Guo, Y.; Zhao, R.; Lai, S.; Fan, L.; Lei, X.; Karagiannidis, G.K. Distributed Machine Learning for Multiuser Mobile Edge Computing Systems. IEEE J. Sel. Top. Signal Process. 2022,16, 460–473. [CrossRef] 6. Zhao, F.; Chen, Y.; Zhang, Y.; Liu, Z.; Chen, X. Dynamic Offloading and Resource Scheduling for Mobile-Edge Computing with Energy Harvesting Devices. IEEE Trans. Netw. Serv. Manag. 2021,18, 2154–2165. [CrossRef] 7. Chen, Y.; Zhao, F.; Chen, X.; Wu, Y. Efficient Multi-Vehicle Task Offloading for Mobile Edge Computing in 6G Networks. IEEE Trans. Veh. Technol. 2022,71, 4584–4595. [CrossRef] 8. Chen, J.; Chang, Z.; Guo, X.; Li, R.; Han, Z.; Hämäläinen, T. Resource Allocation and Computation Offloading for Multi-Access Edge Computing With Fronthaul and Backhaul Constraints. IEEE Trans. Veh. Technol. 2021,70, 8037–8049. [CrossRef] 9. Chang, Z.; Gong, J.; Li, Y.; Zhou, Z.; Ristaniemi, T.; Shi, G.; Han, Z.; Niu, Z. Energy Efficient Resource Allocation for Wireless Power Transfer Enabled Collaborative Mobile Clouds.IEEE J. Sel. Areas Commun. 2016,34, 3438–3450. [CrossRef] 10. Sun, M.; Xu, X.; Huang, Y.; Wu, Q.; Tao, X.; Zhang, P. Resource Management for Computation Offloading in D2D-Aided Wireless Powered Mobile-Edge Computing Networks. IEEE Internet Things J. 2021,8, 8005–8020. [CrossRef] 11. Boyd, S.; Vandenberghe, L. Convex Optimization; Cambridge University: Cambridge, UK, 2004. 12. Luo, Z.Q.; Ma, W.K.; So, M.C.; Ye, Y.; Zhang, S. Semidefinite Relaxation of Quadratic Optimization Problems. IEEE Signal Process. Mag. 2010,27, 20–34. [CrossRef] Sensors 2022,22, 6002 21 of 21 13. Mach, P.; Becvar, Z. Mobile Edge Computing: A Survey on Architecture and Computation Offloading. IEEE Commun. Surv. Tutor. 2017,19, 1628–1656. [CrossRef] 14. Nath, S.; Wu, J. Deep reinforcement learning for dynamic computation offloading and resource allocation in cache-assisted mobile edge computing systems. Intell. Converg. Netw. 2020,1, 181–198. [CrossRef] 15. Guo, W.; Chang, Z.; Guo, X.; Wu, P.; Han, Z. Incentive Mechanism for Edge Computing-based Blockchain: A Sequential Game Approach. IEEE Trans. Ind. Inform. 2022. [CrossRef] 16. Du, J.; Cheng, W.; Lu, G.; Cao, H.; Chu, X.; Zhang, Z.; Wang, J. Resource Pricing and Allocation in MEC Enabled Blockchain Systems: An A3C Deep Reinforcement Learning Approach. IEEE Trans. Netw. Sci. Eng. 2022,9, 33–44. [CrossRef] 17. Xu, X.; Jiang, Q.; Zhang, P.; Cao, X.; Khosravi, M.R.; Alex, L.T.; Qi, L.; Dou, W. Game Theory for Distributed IoV Task Offloading with Fuzzy Neural Network in Edge Computing. IEEE Trans. Fuzzy Syst. 2022. [CrossRef] 18. Zhang, J.; Du, J.; Shen, Y.; Wang, J. Dynamic Computation Offloading with Energy Harvesting Devices: A Hybrid Decision Based Deep Reinforcement Learning Approach. IEEE Internet Things J. 2020,7, 9303–9317. [CrossRef] 19. Huang, L.; Bi, S.; Zhang, Y.J.A. Deep Reinforcement Learning for Online Computation Offloading in Wireless Powered MobileEdge Computing Networks. IEEE Trans. Mob. Comput. 2020,19, 2581–2593. [CrossRef] 20. Zhou, F.; Hu, R.Q. Computation Efficiency Maximization in Wireless-Powered Mobile Edge Computing Networks. IEEE Trans. Wirel. Commun. 2020,19, 3170–3184. [CrossRef] 21. Liu, Y.; Xie, S.; Yang, Q.; Zhang, Y. Joint Computation Offloading and Demand Response Management in Mobile Edge Network with Renewable Energy Sources. IEEE Trans. Veh. Technol. 2020,69, 15720–15730. [CrossRef] 22. Hu, H.; Wang, Q.; Hu, R.Q.; Zhu, H. Mobility-Aware Offloading and Resource Allocation in a MEC-Enabled IoT Network with Energy Harvesting. IEEE Internet Things J. 2021,8, 17541–17556. [CrossRef] 23. Chang, Z.; Lei, L.; Zhang, H.; Ristaniemi, T.; Chatzinotas, S.; Ottersten, B.; Han, Z. Energy-Efficient and Secure Resource Allocation for Multiple-Antenna NOMA with Wireless Power Transfer. IEEE Trans. Green Commun. Netw. 2018,2, 1059–1071. [CrossRef] 24. Chang, Z.; Wang, Z.; Guo, X.; Yang, C.; Han, Z.; Ristaniemi, T. Distributed Resource Allocation for Energy Efficiency in OFDMA Multicell Networks with Wireless Power Transfer. IEEE J. Sel. Areas Commun. 2019,37, 345–356. [CrossRef] 25. Wang, X.; Ning, Z.; Guo, L.; Guo, S.; Gao, X.; Wang, G. Online Learning for Distributed Computation Offloading in Wireless Powered Mobile Edge Computing Networks. IEEE Trans. Parallel Distrib. Syst. 2022,33, 1841–1855. [CrossRef] 26. Liu, L.; Chang, Z.; Guo, X. Socially Aware Dynamic Computation Offloading Scheme for Fog Computing System with Energy Harvesting Devices. IEEE Internet Things J. 2018,5, 1869–1879. [CrossRef] 27. Liu, X., Hu, S.; Li, M.; Lai, B. Energy-Efficient Resource Allocation for Cognitive Industrial Internet of Things With Wireless Energy Harvesting. IEEE Trans. Ind. Inform. 2021,17, 5668–5677. [CrossRef] 28. Pei, X.; Duan, W.; Wen, M.; Wu, Y.-C.; Yu, H.; Monteiro, V. Socially Aware Joint Resource Allocation and Computation Offloading in NOMA-Aided Energy-Harvesting Massive IoT. IEEE Internet Things J. 2021,8, 5240–5249. [CrossRef] 29. Lee, H.; Choi, J.; Hong, D. Resource Configuration for Full-Duplex-Aided Multiple-Access Edge Computation Offloading. IEEE Trans. Wirel. Commun. 2022,21, 2799–2812. [CrossRef] 30. Yang, Z.; Xu, W.; Shikh-Bahaei, M. Energy Efficient UAV Communication with Energy Harvesting. IEEE Trans. Veh. Technol. 2020 , 69, 1913–1927. [CrossRef] 31. Tang, X.; Cai, Y.; Deng, Y.; Huang, Y.; Yang, W.; Yang, W. Energy-Constrained SWIPT Networks: Enhancing Physical Layer Security with FD Self-Jamming. IEEE Trans. Inf. Forensics Secur. 2019,14, 212–222. [CrossRef] 32. Shahsavari, S.; Shirani, F.; Khojastepour, M.A.; Erkip, E. Opportunistic Temporal Fair Mode Selection and User Scheduling in Full-Duplex Systems. IEEE J. Sel. Areas Commun. 2022,40, 1632–1651. [CrossRef] 33. Gang, Q. What is the limit of energy saving by dynamic voltage scaling? In Proceedings of the IEEE/ACM International Conference on Computer Aided Design (ICCAD 2001), IEEE/ACM Digest of Technical Papers (Cat. No.01CH37281), San Jose, CA, USA, 4–8 November 2001; pp. 560–563. 34. Burd, T.D.; Brodersen, R.W. Processor design for portable systems. J. VLSI Signal Process. Syst. Signal Image Video Technol. 1996 ,13, 203–221. [CrossRef] 35. Ju, H.; Zhang, R. Optimal resource allocation in full-duplex wireless-powered communication network. IEEE Trans. Commun. 2014,62, 3528–3540. [CrossRef] 36. Du, J.; Zhao, L.; Feng, J.; Chu, X. Computation Offloading and Resource Allocation in Mixed Fog/Cloud Computing Systems with Min-Max Fairness Guarantee. IEEE Trans. Commun. 2018,66, 1594–1608. [CrossRef] 37. Chen, M.; Liang, B.; Dong, M. Multi-user Multi-Task Offloading and Resource Allocation in Mobile Cloud Systems. IEEE Trans. Wirel. Commun. 2018,17, 6790–6805. [CrossRef] 38. Grant, M.; Boyd, S.; Ye, Y. CVX: MATLAB Software for Disciplined Convex Programming, Version 2.0 Beta. Available online: http://cvxr.com/cvx/ (accessed on 1 September 2013). 39. Chen, M.; Dong, M.; Liang, B. Joint offloading decision and resource allocation for mobile cloud with computing access point. In Proceedings of the 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Shanghai, China 20–25 March 2016; pp. 3516–3520. 40. Dinh, T.Q.; Tang, J.; La, Q.D.; Quek, T.Q.S. Offloading in Mobile Edge Computing: Task Allocation and Computational Frequency Scaling. IEEE Trans. Commun. 2017,65, 3571–3584.