EconPapers    
Economics at your fingertips  
 

Joint optimization of task offloading and energy trading in edge-enabled smart grids using deep reinforcement learning

Rui Xue, Bin Li, Wenyue He and Yihang Wang

PLOS ONE, 2026, vol. 21, issue 6, 1-15

Abstract: The proliferation of distributed energy resources (DERs) and the ubiquity of Internet of Things (IoT) devices are driving the integration of mobile edge computing (MEC) into smart grids. This convergence enables real-time data processing for prosumers but introduces a complex cyber-physical coupling: computational offloading decisions directly impact local energy consumption, thereby altering the prosumer’s status in the peer-to-peer (P2P) energy market. Conversely, dynamic market prices influence the economic viability of offloading. This paper addresses the joint optimization of computational task offloading and P2P energy trading in an edge-assisted smart grid ecosystem. We formulate the problem as a mixed-integer nonlinear programming (MINLP) model aimed at maximizing long-term system utility, balancing throughput, latency, and economic incentives under strict edge server capacity and community energy neutrality constraints. To tackle the curse of dimensionality and system stochasticity, we propose a hybrid framework combining Deep Q-Networks (DQN) with a constraint-aware heuristic mechanism. The DQN agent learns adaptive offloading policies from high-dimensional states, while a deterministic rule-based layer ensures strict adherence to community energy balance. Simulation results based on real-world solar generation and market data demonstrate that our proposed method outperforms baseline strategies—including local-only execution and greedy heuristics—improving average utility by 12.3% and reducing task delay by 16.5%, while maintaining robust operational feasibility.

Date: 2026
References: Add references at CitEc
Citations:

Downloads: (external link)
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0342888 (text/html)
https://journals.plos.org/plosone/article/file?id= ... 42888&type=printable (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:plo:pone00:0342888

DOI: 10.1371/journal.pone.0342888

Access Statistics for this article

More articles in PLOS ONE from Public Library of Science
Bibliographic data for series maintained by plosone ().

 
Page updated 2026-06-14
Handle: RePEc:plo:pone00:0342888