Abstract
This paper formulates a class of partial differential equation (PDE) control problems as a reinforcement learning (RL) problem. We design an RL-based algorithm that directly works with the state of PDE, an infinite dimensional vector, thus allowing us to avoid the model order reduction, commonly used in the conventional PDE controller design approaches. We apply the method to the problem of flow control for time-varying 2D convection-diffusion PDE, as a simplified model for heating, ventilating, air conditioning (HVAC) control design in a room.
Introduction
Controlling systems governed by Partial Differential Equations (PDEs)—such as the temperature and airflow in a building's HVAC system—presents a significant engineering challenge. Traditional control design typically relies on model order reduction, where an infinite-dimensional PDE is simplified into a finite-dimensional Ordinary Differential Equation (ODE). However, these reduced models often fail when environmental conditions change, such as when furniture is moved or occupancy shifts.
This research proposes a data-driven alternative: treating the PDE control problem as a Markov Decision Process (MDP) and applying Reinforcement Learning (RL) to learn control policies directly from high-dimensional state data. By bypassing manual model reduction, the agent can capture complex, non-linear fluid dynamics that traditional linear controllers often ignore.
The Heat Invader Benchmark
To evaluate this approach, we introduced the "Heat Invader" domain. This benchmark simulates a 2D room where a heat source (representing a person) moves along a trajectory. The objective is to modulate two cooling fans located on the floor to maintain a comfortable temperature while minimizing energy consumption.
Data for this environment was generated using the finite volume solver FiPy, creating a training set of 20,000 samples. We tested two observational modes: one providing the agent with the full temperature grid ("state") and another providing only boundary sensor data ("walls").
Methodology: Regularized Fitted Q-Iteration
The core of our approach is Regularized Fitted Q-Iteration (RFQI). This algorithm treats the PDE state similarly to an image in computer vision. To manage the high-dimensional state space, we utilize Reproducing Kernel Hilbert Spaces (RKHS) with a Gaussian kernel. This allows the algorithm to measure similarity between different temperature fields and approximate the value function without solving the underlying physics equations explicitly. Regularization is applied to prevent overfitting to the high-dimensional (e.g., 2500-dimensional) input space.
Experimental Results
We compared the RFQI agent against several baselines, including a manually designed "Smart Controller" heuristic. The results demonstrate that the RL agent successfully learns to be proactive rather than merely reactive.
As shown in the learning curves, the RFQI agent using full state information begins to outperform the Smart Controller after approximately 8,000 samples. Notably, even the agent restricted to "walls" observations (partial observability) achieved performance comparable to the Smart Controller, despite having significantly less information about the internal room temperature.
| Policy Name | Average Reward (Lower is Better) | Return (Lower is Better) |
|---|---|---|
| Smart Controller | 0.0498 | 0.979 |
| RFQI (state) | 0.0417 | 0.901 |
| RFQI (walls) | 0.0557 | 0.964 |
Conclusion and Future Work
This study demonstrates that RL can effectively control complex systems governed by PDEs by treating physical states as high-dimensional images. This approach offers greater flexibility than traditional control engineering, as it can adapt to new room layouts simply by collecting new data.
Future research will focus on more complex, coupled dynamics—such as the Navier-Stokes equations where airflow and temperature interact—and the application of Deep Reinforcement Learning (e.g., DQN) to scale the approach to even larger datasets and more intricate physical environments.
Summary updated