Technology

Trained across 1.33 × 10102 possible action sequences. On a single GPU.

For scale: the observable universe contains about 1082 atoms. That is the size of the decision space a real grid presents — and the reason conventional tools stop at the few actions a human can enumerate. This page explains the stack that searches the rest.

THE FLEX STACKGrid model & measurement dataGIS · SCADA · planning tools · CIM/CGMESingested via open interchange formatsDigital twin of the power gridfull AC power flow · N-1 security · regulatory constraintstrained against the twin · physics validationRL agent + large-scale tree search1.33 × 10102action sequences · a single GPUproposes candidates in secondsValidated recommendations to the operatorranked, explainable — nothing executes without them
The FLEX stack: from grid model and measurement data to validated recommendations for the operator.

The five layers of the system

Human–AI Interaction
Ranked, explainable recommendations. Operators see what the agent proposes, why, and with what margin — and nothing executes without them.
Governance
Logging, back-testing, audit trails and the documentation the EU AI Act expects of high-risk systems in critical infrastructure.
Intelligence
Reinforcement-learning agents built on Maze, our open-source RL framework, with the MazeFlex trainer layer and parallelised Monte-Carlo tree search over candidate action sequences.
Logic
The digital twin: AC power flow on pandapower, OpenDSS and PyPowSyBl, with physics, N-1 security and regulatory constraints enforced inside the search — not checked afterwards.
Assets
Your grid model and measurement data, ingested via open formats: CIM/CGMES, pandapower, OpenDSS, PSS/E, GeoJSON.

The digital twin

Every recommendation FLEX makes is computed against a full AC-formulation model of your network — not a DC approximation, not a statistical surrogate. The twin ingests your grid model through open interchange formats and stays synchronised with your GIS and planning tools, so the grid the agent optimises is the grid you actually operate, down to circuit-breaker level. Multi-period planning under uncertainty is native: the twin doesn't evaluate a snapshot, it evaluates trajectories — what this switching sequence does at 18:00, and at 18:15, and when the wind forecast is wrong.

What the twin models, which engines it runs on, and how we validate it against your planning tool: Power systems engineering →

Why reinforcement learning — and not a solver?

It's the first question every DSO engineering team asks, and it deserves a plain answer. Classical optimisation is excellent when the problem is convex, continuous and small enough to enumerate. Grid topology is none of those: switching decisions are discrete, the AC physics are non-linear, and the action space grows combinatorially with every sectioning point. Mixed-integer formulations exist — and hit a wall at realistic grid sizes and planning horizons.

Reinforcement learning changes where the computation happens. The expensive part — learning which regions of the action space contain good answers — happens once, in training against the twin. At decision time, the agent proposes candidates in seconds, each one validated by exact power-flow physics before a human ever sees it. The solver mindset asks "prove this is optimal"; the operational mindset asks "give me three actions that safely relieve this line in the next quarter hour." RL, wrapped in physics validation and tree search, answers the second question at a scale nothing else currently does. That combination — not RL alone — is the method behind our L2RPN win and the TenneT results.

THE LOOP FLEX IS TRAINED IN — AND RUNS INAGENTRL policy +large-scale tree searchMaze RL stack · parallelisedMonte-Carlo tree search overcandidate action sequencesproposes switching, taps, setpointsENVIRONMENTPower-griddigital twinfull AC power flow · your voltageand thermal limits · N-1 securitytrajectories, not snapshotsreturns the grid state and the costactionswitching · tap positionP/Q setpoints · curtailmentstate + rewardloadings · voltagesviolations · cost of the actionTraining:the agent learns against the twin on simulated grid days — the expensive part happens once.Operation:candidates in seconds, each re-validated by exact power flow before an operator sees it.
Human–AI Interaction

Ranked, explainable recommendations.

Operators see what the agent proposes, why, and with what margin — and nothing executes without them.

Powered by advanced AI — beyond reinforcement learning.

Reinforcement Learning

The core of our optimization engine. Similar to how AlphaGo and AlphaZero mastered complex strategic games, our RL agents learn optimal grid control strategies through interaction with high-fidelity power system simulations — handling exponential search spaces that defeat traditional optimization, with proven success in international research competitions (L2RPN).

Graph Neural Networks

GNNs naturally represent power grid topology, capturing the relationships between buses, lines and transformers for superior state estimation and prediction — scalable to networks of any size, with enhanced observability in sparsely monitored networks.

Physics-Informed Neural Networks

PINN architectures embed power-flow equations directly into neural networks, ensuring physically consistent predictions while learning from operational data — ideal for state estimation and load forecasting.

Integration & deployment

Our solutions integrate with existing SCADA/ADMS systems from leading vendors including Schneider Electric, Hitachi, Siemens and GE Vernova, and with planning tools such as DIgSILENT and PSS®SINCAL. Flexible deployment options support cloud, on-premise or hybrid architectures.

MazeRL: the open-source RL engine FLEX runs on

The RL core of FLEX is Maze, the application-oriented deep reinforcement-learning framework we developed and open-sourced. It covers the complete development life cycle of an RL application — simulation engineering, environment and perception design, training and imitation, evaluation, rollouts and deployment, logging and KPIs — and it is explicitly the engine, not the product. We open-sourced it because infrastructure operators should be able to read the code their recommendations rest on, and because the research community keeps it honest. Maze took first place in the international L2RPN grid-control competition in 2022; the same stack carried the TenneT day-ahead topology work and the Enel voltage-management results.

pip install -U maze-rl

Python 3.9–3.10, PyTorch, Hydra. Free for research and non-commercial use; commercial licences through EnliteAI. Training scales out with Ray and Kubernetes; the Docker playground image (enliteai/maze:playground) gets you a running notebook in one command.

Spotlight features — six things Maze does that most RL libraries leave to you
1
Perception module

Design and visualise policy and value networks from PyTorch building blocks: dense, convolution, graph convolution and attention, recurrent architectures, action and observation masking, self-attention.

2
Structured environments

Flat, multi-step, multi-agent and hierarchical environment structures that reflect real-world decision processes — alongside full compatibility with existing Gym environments.

3
Maze trainers

A2C, PPO, IMPALA, SAC, behavioural cloning and evolution strategies, all supporting dictionary action and observation spaces and multi-step, auto-regressive policies. Or combine Maze with the RL framework you already use.

4
Advanced training workflows

Imitation learning from teacher policies and policy fine-tuning out of the box — the workflows that turn an expert’s heuristics into a starting point instead of a competitor.

5
Efficient training without boilerplate

Best practices such as observation pre-processing and normalisation are built in, so the conditions for stable RL training don’t have to be rewritten for every project.

6
Hydra configuration and logging

Even complex application and experiment configurations stay manageable with Hydra; an event system with KPI logging, TensorBoard and console output keeps every run explainable.

Engine, not product — where Maze sits in FLEX
1
Maze — the engine

The open-source RL framework: environments, perception, trainers, rollouts, configuration and logging. Anyone can read it, run it and extend it.

2
MazeFlex — the trainer layer

Specialises Maze for power grids: physics-accurate simulation in the loop, N-1 security and regulatory constraints as hard boundaries, grid-specific action spaces such as switching and flexibility activation.

3
FLEX — the product

The digital twin, the operator workflow and the modules — dynamic operating envelopes, flexible asset management, grid state estimation, congestion management — delivered on top of your existing GIS, SCADA and planning stack.

Papers and competition results →

Try the demo

The interactive demo shows how constraints are protected during optimization. The proof of concept runs the same stack on your own grid.