Software
Open-source tools that answer two questions every grid operator faces. How do we bring the system back after a blackout? Can the grid actually carry the dispatch we computed? Each tool has a graphical interface, a full user manual and an automated test suite, and is released under the GriRes organization on GitHub.
GriRes Suite
The Grid Resilience Suite is a set of MATLAB toolboxes under GPL-3.0. The tools share one interface style, one data format (MATPOWER cases) and one documentation standard: every algorithm and every constraint is stated in full, and every result is checked against an independent computation.
GRIM: Generic Restoration Intelligent Milestone
From blackout to full service, step by step, with every step proven feasible in the AC network.
GRIM computes the complete restoration plan after a blackout: which unit to crank next, which line to energize, which load to pick up, and when each restoration milestone is reached. It is the open-source successor to HITS and builds on the Generic Restoration Milestone method (IEEE Transactions on Power Systems, 2011).
Downloads
- Version 4.0.0 (November 2026, current): Release notes · Source (zip) · Manual (96 pages)
- Version 3.0.0 (first open-source release): Source · Source (zip) · Manual
New in 4.0.0: restoration of grids with AI data centers. After a blackout a large AI data center keeps running on its backup generation, and its fuel is limited. It must be back on the grid before the fuel runs out, and the grid must be able to take each step of its load. GRIM 4.0.0 puts the data center into the restoration plan, next to generator start-up and the pickup of the other critical loads.
What GRIM does
- Computes the restoration sequence and the three milestones: all units cranking and all critical loads connected, all units cranked, all units at minimum output.
- Three solvers: backtracking (recovers from an infeasible step by trying other orders), greedy (one fast pass), and validation (audits a sequence proposed by a dispatcher and reports where and why it fails).
- Starts from a complete blackout or from an island that is already energized.
- Treats AI data centers and other loads with backup generation as restoration targets: tracks their fuel, restores the most urgent one first, and reconnects them in steps (4.0.0).
- Step Viewer, power trajectory plots, Markdown reports, and a log of the Thevenin equivalent at each data center bus for PSCAD and other EMT studies.
- Data editor and a converter from MATPOWER cases. Test systems from 7 to 57 buses, four of them with AI data centers.
Constraints enforced at every restoration step
- AC power flow. Every step is solved as a full AC optimal power flow. A step that has no AC solution is rejected.
- Bus voltage limits at every energized bus.
- Generator active power limits, including the ramp that each unit follows after it is cranked.
- Generator reactive power limits, with four selectable models: fixed, ratio, capability circle and linear.
- Cranking requirements. Each non-black-start unit draws its start-up power for its cranking time before it produces power.
- Energization path. Each step connects one target through an energized path in the network.
- Backup fuel of each data center and the ramp limit of its reconnection, with smaller steps after a cold start (4.0.0).
- Frequency security (optional, 4.0.0). A load pickup is rejected when it exceeds the limit set by the allowed rate of change of frequency and the inertia of the online units.
Tested with 16 regression scenarios, 150 robustness cases and an interface test.
GRIT: Grid Realizability Inspection Tool
Is your DC dispatch realizable in the AC grid? GRIT answers in under a second for a 10,000-bus system.
Markets and operators dispatch with the DC model, which has no voltages, no reactive power and no losses. A dispatch that satisfies every DC constraint can still violate voltage limits, overload lines, or have no AC solution at all. GRIT takes the DC dispatch and reports whether the AC grid can carry it, where it fails, and which nearby dispatch works.
Downloads
- Version 1.0.0 (November 2026, current): Release notes · Source (zip) · Manual (45 pages)
What GRIT does
- Check. Solves the AC equations from the DC point and lists every violated limit with its value, limit and excess. For systems of 1,354 buses and more, a check costs 7 to 17 percent of one AC-OPF.
- Repair. Finds a nearby dispatch that satisfies the limits, with the smallest change of generation and voltage set points. Every step is verified by a new AC solution.
- Distance to feasibility. When a repair cannot remove everything, GRIT reports the smallest relaxation of limits that is still needed.
- Verified solution. A Newton-Kantorovich test confirms that an exact AC solution lies within a stated distance of the computed point.
- Batch. All single branch outages, or the load levels of a whole day, in one call. The 186 outages of the IEEE 118-bus system take half a second.
- Marginal loss factors, Markdown reports and a graphical interface in the style of GRIM.
Constraints checked in every run
- AC power flow with losses. The generators share the losses, so no single slack unit is overloaded.
- Bus voltage limits at every bus.
- Branch limits on apparent power (MVA) at both ends of every branch. Limits on MW or on current can be selected.
- Generator reactive power limits. A unit that reaches a limit releases its voltage set point, including the reference unit.
- Generator active power limits after the losses are shared.
- Branch angle difference limits (optional).
Tested with 109 automated tests on cases from 9 to 13,659 buses. Branch flows agree with MATPOWER's AC power flow within 0.0001 MW.
In preparation: GRIP (admission of periodic AI training loads), GL-ACUC (AC-feasible unit commitment) and GL-VB (virtual bidding with CVaR).
HITS — Healing Touch for Power Systems
The earlier MATLAB toolbox for restoration planning, distributed under the 3-clause BSD license. Kept here for reproducibility; new work should use GRIM.
- HITS 2.0 (2022): GUI results, vulnerable line set detection, influence graph matrix.
- HITS 1.0 (2019): command-window restoration planner.
If you use HITS, please cite: Y. Hou, C.-C. Liu, K. Sun, P. Zhang, S. Liu, and D. Mizumura, "Computation of milestones for decision support during system restoration," IEEE Transactions on Power Systems, vol. 26, no. 3, pp. 1399–1409, 2011.
System Restoration Navigator
Developed for the Electric Power Research Institute between 2010 and 2016 (versions 1.0, 2.0, 4.0, 5.0). It evaluates a restoration procedure and builds one interactively with the planner. EPRI gave it a Technology Transfer Award in 2014. It is EPRI's product; contact them for access.
Data sets
- Simplified Gansu system, 132 buses, 244 branches (V1) · MATPOWER case with full AC data (V4)
- Simplified Gansu system, 157 buses, 258 branches (V3)
- Wind power simulation data: 9-, 132-, and 647-bus systems (V2)
- Cascading failure chain database for the IEEE 39- and 118-bus systems (18 MB)
- Generic Restoration Milestones (technical note)