Skip to main content
Back

Ghent University's S3TS Beats Standard Grid Planning by 51% on Nonlinear Problems

S3TS merges Monte Carlo Tree Search with stochastic scenario trees, letting energy planners handle nonlinear models and renewable uncertainty at the same time — something neither approach could do alone.

Pro

  • New algorithm: S3TS extends Monte Carlo Tree Search with pre-built scenario trees, enabling planning under uncertainty with nonlinear models.
  • Core gap filled: Existing methods handle either nonlinearity (MCTS) or uncertainty (stochastic MPC) — S3TS handles both simultaneously.
  • Linear results: Achieves costs within 14% of the MILP-optimal stochastic solution on a tractable Belgian grid imbalance benchmark.
  • Nonlinear results: Cuts costs by up to 51% vs. a rule-based baseline and 5.4% vs. deterministic MCTS, with the gap widening at higher compute budgets.
  • Plug-in compatible: Uses the same scenario trees as stochastic MPC, so existing probabilistic forecasting pipelines require no modification.
  • Open source: Code available at github.com/loud-mime/S3TS; extensions to CVaR and broader domains planned.

Energy grid operators face a planning problem that sits at an uncomfortable intersection: the models needed to accurately simulate modern power systems are increasingly nonlinear, while the uncertainty introduced by renewable energy sources demands explicit probabilistic reasoning. Until now, no single planning framework handled both well. A new algorithm from researchers at Ghent University, Beebop.ai, and Imperial College London aims to close that gap.

The paper introduces S3TS (Stochastic Scenario-Structured Tree Search), an extension of Monte Carlo Tree Search (MCTS) that replaces the algorithm's usual assumption of deterministic transitions with a pre-built scenario tree encoding probabilistic futures. The result is a planner that can reason over uncertainty without needing a closed-form mathematical model of the system it controls.

The planning gap that motivated this work

The energy sector has two dominant planning paradigms, and each has a blind spot. Mathematical optimization (think Mixed-Integer Linear Programming, or MILP) handles uncertainty well through multi-stage stochastic formulations, but breaks down when system dynamics are nonlinear , discontinuous price ladders, neural-network-based demand models, and mixed-integer constraints all push conventional solvers to their limits. Monte Carlo Tree Search, on the other hand, can handle arbitrarily complex simulators because it only needs to run a model, not differentiate through it. But standard MCTS assumes deterministic state transitions, making it fragile when future outcomes are genuinely uncertain.

While existing approaches can address either non-linearity (e.g., Monte Carlo Tree Search) or uncertainty (e.g., stochastic mathematical optimization), there is a lack of planning techniques capable of addressing both challenges simultaneously. S3TS is the proposed bridge.

What a scenario tree actually is

A scenario tree is a compact, branching representation of how an uncertain variable (like grid imbalance) might evolve over time. Instead of assuming a single future trajectory, it encodes a set of plausible futures, each with an associated probability. This is the standard input format for stochastic Model Predictive Control (MPC) , and crucially, S3TS reuses exactly the same scenario tree that a stochastic MPC would consume. That means any existing probabilistic forecasting pipeline can feed S3TS without modification.

The tree is built in three stages:

  1. Scenario sampling: Draw a large number of trajectories (e.g., 10,000) from the underlying stochastic distribution.
  2. Scenario reduction: Use a Wasserstein-distance-based algorithm to prune down to a manageable representative set (e.g., 100 trajectories), redistributing probability mass to the nearest retained neighbor.
  3. Tree assembly: Apply stage-wise K-Means clustering to group scenarios into a branching tree structure, concentrating splits at early time steps where they matter most for the immediate decision.
Example scenario tree with three stochastic variables tracked across four time steps

How S3TS works, step by step

Standard MCTS runs four phases in a loop , selection, expansion, simulation, backpropagation , and treats the world as deterministic. S3TS augments this with a new type of node: the scenario node. Here is how the two node types interact:

  1. Selection: Starting from the root, the UCT formula picks an action at each state node (the standard MCTS decision point), balancing exploitation of known-good actions with exploration of less-visited ones.
  2. Scenario branching: Each action leads to a scenario node mapped to the corresponding node in the pre-built scenario tree. The scenario node then fans out into all of its children simultaneously , one per branch of the scenario tree , rather than sampling a single outcome.
  3. Recursive evaluation: The algorithm recurses into each child state node and collects their values.
  4. Probability-weighted aggregation: Child values are combined using the branch probabilities from the scenario tree, producing a single expected-value estimate.
  5. Backpropagation: This estimate flows back up the tree, updating Q-values at every visited state-action pair.

The key design choice is that uncertainty is fixed upfront in the scenario tree topology rather than sampled fresh at each visit. This eliminates the variance of online Monte Carlo draws and makes the search directly compatible with the stochastic programming tradition, where auditable, pre-computed scenario trees are standard practice.

The benchmark: Belgian grid imbalance pricing

The authors evaluate S3TS on a simulated demand response signal publication problem, largely mimicking the imbalance settlement mechanism in Belgium. The setup is as follows: a grid operator must publish an approximation of the final settlement price during a 15-minute settlement window, before the actual price is known. More accurate publications reduce risk for market participants and encourage them to help balance the grid. The stochastic variable is the System Imbalance (SI) , the net excess or deficit of power , which evolves according to a first-order autoregressive process with sinusoidal drift and time-varying Gaussian noise.

Two problem formulations were tested:

  • Linear: Actor response and price functions are piecewise-linear, making the problem solvable by MILP. This provides a ground-truth optimum to benchmark against.
  • Non-linear: The price function becomes a discontinuous step ladder (inspired by the real Belgian mechanism), and actor response follows a time-varying quadratic-saturated curve. This is analytically intractable for conventional solvers.
Step-wise price function used in the non-linear formulation, showing steep penalties at large imbalance

The evaluation ran 1,000 independent settlement periods and compared S3TS against five baselines: a rule-based heuristic, a perfect-knowledge oracle (clairvoyant upper bound), stochastic MPC (MILP on the same scenario tree), deterministic MPC (MILP on the median scenario), and deterministic MCTS (same algorithm as S3TS but with a single median trajectory instead of a scenario tree). All tree-search methods were given the same wall-clock budgets: 1, 2, 4, and 8 seconds per published price.

Results: near-optimal in linear settings, dominant in nonlinear ones

In the linear regime, S3TS achieves near-optimal performance in linear, analytically tractable settings, with costs within 14% of the mathematically optimal solution conditioned to the scenario trees. That gap narrows as compute budget increases, suggesting it is partly a simulation-budget artifact rather than a structural ceiling.

In the non-linear regime , where MILP cannot compete , the results are more striking. S3TS outperforms the rule-based baseline by up to 51% under quadratic cost (MSE), and beats deterministic MCTS by 5.4% at the largest budget. Crucially, the S3TS-vs-MCTS gap widens with more compute time rather than closing. More simulation budget lets S3TS weight its scenario branches more accurately, while deterministic MCTS deepens its commitment to a single misleading median trajectory , a mild overfitting-to-forecast effect.

The distributional story is equally important. S3TS concentrates its error distribution tightly around the median, trading away a few exceptional low-error periods to strongly suppress the high-error tail. Under quadratic cost, that tail suppression is worth roughly double the improvement seen under linear cost , exactly what you would expect from a risk-aware planner.

What this unlocks in practice

The practical value of S3TS lies in what it can now accept as a system model. Because it only requires the model to be simulatable , not differentiable, not convex, not even analytically expressible , it opens the door to a class of problems that were previously stuck between two bad options:

  • Energy dispatch with neural-network-based demand or thermal models
  • Imbalance settlement mechanisms with tabulated, discontinuous price ladders
  • Microgrid scheduling where actor behavior is learned from data rather than specified analytically
  • Any multi-stage stochastic control problem where the cost function involves min/max operators, exponentials, or mixed-integer constraints

The algorithm also inherits a practical compatibility bonus: the same scenario tree used for stochastic MPC is also used for the proposed tree search algorithm, enabling controlled comparisons that isolate the contribution of the optimization procedure. Teams already running stochastic MPC pipelines can plug S3TS in as a drop-in alternative optimizer without changing their forecasting infrastructure.

Limitations to keep in mind

S3TS is not a universal upgrade. A few constraints matter for practitioners:

  • Discrete action space required: The current implementation discretizes the action space at each timestep. Continuous-action problems need adaptation.
  • Scenario tree quality matters: The algorithm's performance is bounded by how well the scenario tree approximates the true distribution. A poor forecasting model upstream will degrade results regardless of how many MCTS simulations are run.
  • Compute budget sensitivity: At very low budgets (1 second), the gap over deterministic MCTS is modest. The full benefit of uncertainty-aware search emerges at higher compute allocations.
  • Tested on one domain: Results come from a single simulated problem. The authors acknowledge the need for evaluation across residential heating, microgrid scheduling, and maintenance optimization before broader claims can be made.

The implementation code is publicly available on GitHub, and the authors note that extensions to risk-sensitive objectives like CVaR are a natural next step , which would let S3TS explicitly optimize the tail behavior that already differentiates it from standard MCTS in practice.