The increasing adoption of renewable energy resources and the growing need for efficient and adaptable energy management have emphasized the importance of innovative solutions for energy sharing and storage. This study aims to analyze the application of advanced optimization techniques in decentralized energy systems, focusing on strategies that improve energy distribution, adaptability, and reliability. This research employs a comprehensive review methodology, examining reinforcement learning approaches, demand response mechanisms, and the integration of battery energy storage systems to enhance the flexibility and scalability of P2P energy markets. The main findings highlight significant advancements in robust decision-making frameworks, the management of energy storage systems, and real-time optimization for decentralized trading. Additionally, this study identifies key technical and regulatory challenges, such as computational complexity, market uncertainty, and the lack of standardized legal frameworks, while proposing pathways to address them through intelligent energy management and collaborative solutions. The originality of this work lies in its structured analysis of emerging energy trading models, providing valuable insights into the future design of decentralized energy systems that are efficient, sustainable, and resilient.
This paper proposes a real-time energy management strategy for low-voltage microgrids that combines short-horizon forecasting with a rule-based supervisory controller to coordinate battery energy storage usage and reactive power support provided by flexible alternating current transmission technologies. The central contribution is the forecast-informed, joint orchestration of active charging and reactive power dispatch to regulate voltage and preserve stability under large photovoltaic variability and uncertain electric vehicle demand. The work also introduces a resilience response index that quantifies performance under external disturbances, forecasting delays, and increasing levels of electric-vehicle integration. Validation is carried out through time-domain numerical simulations in MATLAB/Simulink using realistic solar irradiance and electric vehicle charging profiles. The results show that the coordinated strategy reduces voltage deviation events, maintains stable operation across a wide range of scenarios, and enables electric vehicle charging to be supplied predominantly by renewable generation. Sensitivity analysis further indicates that support from flexible alternating current devices becomes particularly decisive at high charging demand and in the presence of forecasting latency, underscoring the practical value of the proposed approach for distribution-level microgrids.