[Paper Review] Finite Horizon Q-learning: Stability, Convergence, Simulations and an application on Smart Grids
This paper proposes a finite horizon Q-learning algorithm for Markov decision processes with stage-dependent dynamics and rewards, proving its almost-sure convergence and stability using the ordinary differential equation (O.D.E) method. The algorithm outperforms baseline strategies in smart grid energy management, significantly reducing average cost in both renewable energy and non-renewable scenarios.
Q-learning is a popular reinforcement learning algorithm. This algorithm has however been studied and analysed mainly in the infinite horizon setting. There are several important applications which can be modeled in the framework of finite horizon Markov decision processes. We develop a version of Q-learning algorithm for finite horizon Markov decision processes (MDP) and provide a full proof of its stability and convergence. Our analysis of stability and convergence of finite horizon Q-learning is based entirely on the ordinary differential equations (O.D.E) method. We also demonstrate the performance of our algorithm on a setting of random MDP as well as on an application on smart grids.
Motivation & Objective
- To develop a Q-learning algorithm suitable for finite horizon Markov decision processes (MDPs) with stage-dependent transition probabilities and rewards.
- To provide a rigorous stability and convergence analysis for finite horizon Q-learning using the stochastic approximation framework and O.D.E. method.
- To demonstrate the algorithm's performance on random MDPs and a real-world smart grid application involving microgrid energy management.
- To show that the algorithm converges to optimal Q-values even when full model information is unavailable.
Proposed method
- The algorithm extends standard Q-learning to finite horizon MDPs by incorporating stage-dependent Q-value updates across N stages.
- It uses a stochastic approximation framework with time-varying learning rates to update Q-values based on sampled state-action-reward-next state transitions.
- Convergence is established via the O.D.E. method, showing that the Q-value recursion converges almost surely to the optimal Q-values.
- The algorithm handles non-stationary dynamics and rewards by explicitly modeling time dependence in the transition and reward functions.
- A dynamic programming baseline is used to validate the learned Q-values in experiments on random MDPs and a smart grid MDP.
- The smart grid application models microgrid decisions as a finite horizon MDP with state (demand, battery, price), actions (buy from grid, discharge battery), and cost-based rewards.
Experimental results
Research questions
- RQ1Can a Q-learning algorithm be rigorously proven to converge in finite horizon MDPs with stage-dependent dynamics and rewards?
- RQ2Does the proposed finite horizon Q-learning algorithm maintain stability and converge to optimal Q-values under partial model information?
- RQ3How does the performance of finite horizon Q-learning compare to baseline heuristics in energy management tasks?
- RQ4To what extent does the availability of renewable energy reduce operational costs in microgrid management?
Key findings
- The finite horizon Q-learning algorithm converges almost surely to the optimal Q-values, as proven via the O.D.E. method.
- In random MDPs, the algorithm achieves Q-values close to those obtained by full-information dynamic programming.
- In the smart grid application, finite horizon Q-learning reduced average cost to 0.1152 (with renewable energy) compared to 0.7857 for the 'fill demand' baseline.
- The 'fill battery' baseline incurred significantly higher costs (e.g., 5.6629) than finite horizon Q-learning, especially in scenarios with high demand and low battery.
- The inclusion of renewable energy generation reduced average cost by over 90% in high-demand scenarios, demonstrating its impact on cost efficiency.
- The algorithm outperformed both baselines across all tested scenarios, with consistent cost reductions in both renewable and non-renewable settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.