---
title: "Simulator-based reinforcement learning for data center cooling optimization"
description: "Meta uses an offline, simulator-based reinforcement learning agent to set the supply airflow setpoint in its outside-air, evaporatively cooled data centers."
url: "https://swe.quest/articles/simulator-based-reinforcement-learning-for-data-center-cooling-optimization-a48b89097c384f75"
canonical: "https://engineering.fb.com/2024/09/10/data-center-engineering/simulator-based-reinforcement-learning-for-data-center-cooling-optimization/"
source: "Meta Engineering"
published: "2024-09-10"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["datacenters","machine-learning","cost-optimization"]
---

# Simulator-based reinforcement learning for data center cooling optimization

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2024-09-10, 8 min read, Case study. Original: [https://engineering.fb.com/2024/09/10/data-center-engineering/simulator-based-reinforcement-learning-for-data-center-cooling-optimization/](https://engineering.fb.com/2024/09/10/data-center-engineering/simulator-based-reinforcement-learning-for-data-center-cooling-optimization/)

## Summary

Meta uses an offline, simulator-based reinforcement learning agent to set the supply airflow setpoint in its outside-air, evaporatively cooled data centers. Rather than exploring online, the agent starts from historical sensor states, samples actions, uses a physics-based thermal simulator to predict the next state and reward, and retrains its policy on the best state-action pairs. Constraints keep cold-aisle temperature rise and cold-to-hot-aisle pressurization within spec, and the simulator covers conditions absent from historical data. A pilot running since 2021 cut supply fan energy by 20% and water use by 4% on average with no temperature excursions, and the approach is now rolling out to existing and future AI-focused data centers.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Datacenters](https://swe.quest/tags/datacenters.md) (Infrastructure)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)

## Prerequisites

- reinforcement learning basics ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- HVAC control loops

## Keywords

Meta, reinforcement learning, building management system, evaporative cooling

## Related posts

- [How thermal simulation helps optimize Meta’s data centers](https://swe.quest/articles/how-thermal-simulation-helps-optimize-meta-s-data-centers-0a7189ef32c13c13.md): Meta Engineering · 2022-09-14 · Medium · 6 min read · Datacenters, Scientific computing
  Meta built a physics-based (gray box) thermal simulator of its data center cooling and HVAC systems, using Modelica and the Control Description Language, so control policies can be tested without risking live facilities.
- [Design for Sustainability: New Design Principles for Reducing IT Hardware Emissions](https://swe.quest/articles/design-for-sustainability-new-design-principles-for-reducing-it-hardware-7a0bbb9a3951b58a.md): Meta Engineering · 2025-10-14 · Easy · 11 min read · Datacenters, Hardware
  Meta's Design for Sustainability guidelines target Scope 3 emissions from data center IT racks through modular rack design, reuse and retrofitting, lower-carbon materials, longer hardware life, dematerialization and supplier engagement.
- [LeRobot v0.6.0: Imagine, Evaluate, Improve](https://swe.quest/articles/lerobot-v0-6-0-imagine-evaluate-improve-6d62fd5c84e31d6d.md): Hugging Face · 2026-07-07 · Hard · 12 min read · Machine learning, Model training, Evaluation, Open source
  LeRobot v0.6.0 targets the full robot learning loop. It adds world-model policies (VLA-JEPA, LingBot-VA, FastWAM) that use future prediction during training while keeping inference cheap, new VLAs (GR00T N1.7, MolmoAct2, EO-1, EVO1, Multitask DiT), and a unified reward models API with Robometer and zero-shot TOPReward.
- [Powering AI-led research through simulation](https://swe.quest/articles/powering-ai-led-research-through-simulation-d6d1409659075b73.md): Grab Engineering · 2026-10-05 · Medium · 9 min read · AI agents, System design, Testing, Performance engineering, Rust
  Grab built sim-rs, a self-contained tick-based marketplace simulator that replays a city-day of bookings and drivers through a closed dispatch loop (demand, supply movement, cancellation models, batching, solver-based allocation, recycling) in tens of minutes, with pluggable stages, portable reproducible run packages, and built-in switchback/spatial A/B/n experiments.
- [How Meta Is Leveraging AI To Improve the Quality of Scope 3 Emission Estimates for IT Hardware](https://swe.quest/articles/how-meta-is-leveraging-ai-to-improve-the-quality-of-scope-3-emission-estimates-f52a91d10814f7ff.md): Meta Engineering · 2025-10-14 · Easy · 10 min read · LLMs, Datacenters, Hardware, Machine learning
  Meta estimates embodied (Scope 3) carbon for hundreds of millions of data center hardware components by combining product carbon footprints (PCFs), parameterized models and cost-based estimates, ranking each by data quality and rolling them up to the rack level.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
