本論文對於微電網的能源管理最佳化進行了深入的分析和探討,介紹了微電網的結構和調度模型,並提出了一種結合深度確定性策略梯度(Deep Deterministic Policy Gradient, DDPG)與長短期記憶(Long Short-Term Memory, LSTM)負載預測模型的經濟調度方法,旨在實現微電網的最優調度控制。首先,利用LSTM網路來預測微電網的負載信息,以確定發電機輸出與儲能系統的充放電策略;其次,利用DDPG來實現微電網的最佳化經濟調度,為了驗證結果是否符合電力潮流限制,採用位於台灣澎湖群島的七美島微電網模型進行研究,並將所提出的方法與基於經驗的能量管理系統、牛頓結合粒子群體法和深度Q網路(Deep Q Network, DQN)進行比較;最後,通過使用OPAL-RT即時模擬器和浮點數位訊號處理器構建的硬體迴圈(Hardware In the Loop, HIL)系統,充分驗證和展現所提出方法的有效性。;This study presents an in-depth analysis and exploration of energy management optimization in microgrid. It introduces the structure and scheduling model of microgrid and proposes an economic dispatch method that combines Deep Deterministic Policy Gradient (DDPG) and Long Short-Term Memory (LSTM) load forecasting model to achieve optimal dispatch control in microgrid. Firstly, the LSTM network is utilized to predict the load information in microgrid, determining the output of power generator and the charging/discharging control strategy of a battery energy storage system. Secondly, DDPG is employed to optimize the economic dispatch of the microgrid. To verify the results against power flow constraints, a study is conducted using Cimei Island microgrid model located in the Penghu Islands, Taiwan. The proposed method is compared with experience-based energy management systems, Newton-particle swarm optimization, and Deep Q-Network (DQN). Finally, the effectiveness of the proposed method is fully validated and demonstrated through the Hardware In the Loop (HIL) system, which is built using OPAL-RT real-time simulator with floating-point digital signal processor.