Skip to content
RT
Skip to main content
Provenance:Dataset:v2025.1Run:1 Jan 2025
PhD Dissertation · 2025~30 min read

Reinforcement Learning: Foundations, Algorithms, and Energy Applications

Part of Hybrid AI for Turkey's 2050 Energy Transition — Seyit Önderol, supervised by Prof. Dr. Faik Bilgili

Reinforcement learning is a framework concerned with learning what is the 'best' policy to take actions through interactions with environments. It offers a powerful framework for sequential optimization problems suited to the high-dimensional environment that is common in energy transition planning. Unlike supervised learning in which labeled examples of the optimal decision are required, agents in RL learn with trial-and-error through reward signals that indicate the quality of the decision. This allows agents to iteratively improve their policy or strategy to maximize the cumulative long-term reward. The present paradigm can easily integrate the temporal, stochastic as well as high dimensional nature of energy system optimization where today's decisions regarding capacity expansion affect tomorrow's costs, emissions, reliability, etc. over multi-decade horizons. This part discusses basic concepts of RL (Markov Decision Processes and Bellman equations), algorithm families (value based, policy gradient, evolutionary and hybrid), and uses in energy systems in order to establish a theoretical backbone of the multi-agent RL optimization framework that this dissertation proposes in Chapter 3.

Markov Decision Processes and Bellman Optimality

Reinforcement learning problems are modeled as Markov Decision Processes (MDPs), denoted as a tuple :

- refers to the state space of the system, which consists of all possible configurations of the system. - refers to action space, which denotes the available action or decision at any states. - $P(s'|s,a)$ is **stochastic transition probability** (likelihood of reaching state $s'$ from state $s$ after action $a$). The probability of reaching state $s'$ from state $s$ after performing action $a$ is a form of a stochastic model. The stochastic transition probability $P(s'|s,a)$ models all the uncertainty that one may face in the future. Examples include uncertainty regarding demand growth, technology costs, potential changes in public policy, climatic variations, etc. The stochastic characteristic captures the inherent uncertainties of energy system dynamics, giving MDPs detachment from deterministic optimization problems. - $R(s,a,s')$ is reward function (immediate payoff for transition) - is discount factor (present value of future rewards). The discount factor is represented by and its value lies within the range of 0 to 1.

The Markov property states that the distribution of the next state, , is independent of the history of previous states and actions: . The simplifying nature of the memoryless assumption does not come without a cost. Hence the state which is used should embody all information necessary for the decision to be optimal.

A policy (deterministic) or (stochastic) maps states to actions. Finding a near-optimal policy for maximizing the expected cumulative discounted reward (i.e. return):

value function gives expected return starting at state $s$ under policy :

The action-value function, also known as the Q-function, denoted as , computes the expected return starting at state $s$, taking action $a$, then following policy :

The Bellman equations refer to recursive relationships for value functions. For :

For :

The Bellman optimality equation is satisfied by the optimal value function :

And optimal Q-function:

The best policy is . All RL algorithms use these equations to approximate their optimal value function or policy through updates.

@sutton2018reinforcement provide comprehensive treatment of RL fundamentals. For the application of energy models, the MDP formulation captures sequential capacity expansion naturally. Here, the definition of components is mentioned. The state represents the current capacity mix, demand, costs, emissions. Action represents the capacity additions. Further, the transition reflects capacity accumulation, cost evolution, demand growth. The reward aggregates cost minimization, emission reduction and reliability maintenance. The discount factor balances short-term and long-term goals. If is around zero, it means that immediate rewards are a priority. Otherwise, if is close to 1, it means that the distant future is equally weighted as the present.

Value-Based Methods: Q-Learning and Deep Q-Networks

Value-based methods learn optimal value functions that use greedy action selection to derive optimal policies. The foundational algorithm for reinforcement learning is Q-learning, a Q-value updating procedure based on the Bellman equation:

where is learning rate. Q-learning is an off-policy algorithm that learns a near-optimal policy while executing some exploratory policy like an epsilon-greedy policy. Under tabular representation (finite ) with sufficient exploration (an assumption), learning rates must decrease [watkins1992qlearning] and convergence to is guaranteed.

📎 Cite this — Reinforcement Learning: Foundations, Algorithms, and Energy Applications

Önderol, S. (2025). Reinforcement Learning: Foundations, Algorithms, and Energy Applications. In Electricity cost optimization in Turkey's transition to renewable energy (Chapter). Erciyes University.
Reinforcement Learning: Foundations, Algorithms, and Energy Applications — Thesis Viewer | Renewable Transition