Skip to content
GriResPublic

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GRIM™: Generic Restoration Intelligent Milestone

License: GPL-3.0-or-later MATLAB

GRIM Logo

GRIM is an open-source MATLAB toolbox for power system restoration decision support. Given a blackout scenario, it computes the sequence and timing of generator cranking, load pickup and network energization, and the restoration milestones that result. Every step is checked with an AC optimal power flow.

New in Version 4.0.0: restoration planning for grids with AI data centers (AIDC). GRIM decides when and how each data center is reconnected, together with generator start-up and the pickup of the other critical loads.

GRIM is part of the GriRes™ (Grid Resilience) Suite.

Restoration with AI Data Centers

A large AI data center is not a passive load during restoration. After a blackout it continues to operate on its backup generation, and its fuel is limited. It must therefore be reconnected to the grid before the fuel runs out. The reconnection is also limited by the grid. The online generators must be able to supply each load step, and the step must not cause an excessive rate of change of frequency (RoCoF).

GRIM models such a facility as a Load with Embedded Generation (LEG). A LEG is a restoration target, together with the generators and the critical loads, and one restoration plan covers all of them.

  • Fuel tracking. The remaining backup fuel of each data center is updated at every restoration step.
  • Priority by urgency. A data center whose fuel is nearly exhausted is placed first in the restoration sequence.
  • Stepwise reconnection. The load is transferred from the backup generation to the grid in ramp steps. Each step is checked with an AC optimal power flow.
  • Cold start. A data center whose fuel has run out is reconnected in smaller steps, which are limited by the RoCoF that the online generation allows.
  • Frequency security. An optional constraint checks every load pickup against a limit set by the inertia of the online generators.
  • Results for further studies. GRIM writes a report and a plot of the fuel and power trajectory of each data center. It also logs the Thévenin equivalent at the bus of each data center at every step, for use in PSCAD or other EMT studies.

GRIM Step Viewer with an AI data center

Step Viewer during the restoration of the Grid7DC test system. The data center DC1 at bus 4 has transferred 60% of its load to the grid.

Four test systems with LEG loads are included (Grid7DC, Grid7RF, IEEE30DC, IEEE30RF). The same model applies to other facilities with backup generation, such as hospitals and industrial sites. The user manual describes the model (Section 11), its formulation (Section 17) and a worked example (Section 23).

Features

  • Restoration with AI data centers (AIDC/LEG model), as described above
  • Milestone-based restoration planning with backtracking and greedy solvers
  • Frequency/RoCoF constraint: optional check of every load pickup against a limit set by the online inertia, with per-generator inertia data
  • Validation mode: checks a user-defined restoration sequence step by step
  • Partial-Blackout mode: starts restoration from a pre-energized island
  • Input checking: data files and settings are checked before a run, and all problems are reported in one message
  • Interactive GUI for running studies and viewing the results step by step
  • Full AC-OPF integration with reactive power modeling
  • Test systems: IEEE 14, 30, 39 and 57 bus, RTS-24, AIDC variants (Grid7DC/RF, IEEE30DC/RF), and custom grids
  • Reports: Markdown reports, MAT exports, CSV time series
  • Data editor for creating and modifying grid restoration scenarios
  • Configurable restoration parameters including cranking paths, generator priorities, and load dispatch
  • Test programs: 16-scenario regression with a golden file, GUI smoke test, and a 150-case robustness test

Requirements

Quick Start

  1. Install MATPOWER and ensure it is on your MATLAB path.
  2. Clone or download this repository.
  3. In MATLAB, navigate to the GRIM directory.
  4. Run:
    GRIM_Launch
    This opens the GRIM GUI where you can load grid data, configure restoration parameters, and run simulations.

Documentation

See the included manual:

Citation

If you use GRIM in academic work, please cite:

@article{hou2011milestones,
  author  = {Y. Hou and C.-C. Liu and K. Sun and P. Zhang and S. Liu and D. Mizumura},
  title   = {Computation of Milestones for Decision Support during System Restoration},
  journal = {IEEE Transactions on Power Systems},
  volume  = {26},
  number  = {3},
  pages   = {1399--1409},
  year    = {2011}
}

@book{sun2019cascading,
  author    = {K. Sun and Y. Hou and W. Sun and J. Qi},
  title     = {Power System Control Under Cascading Failures},
  publisher = {John Wiley \& Sons},
  year      = {2019}
}

License

GRIM is available under a dual license:

Open Source Commercial
License GPL-3.0-or-later Contact author
Use cases Any use under copyleft terms Proprietary / closed-source products
Cost Free Negotiated
Source code Must share modifications (copyleft) No obligation to share

Open-source users: This software is free under the terms of the GPL-3.0. You may use, modify, and redistribute it, provided that derivative works are also distributed under GPL-3.0 and proper attribution is given.

Commercial users: For proprietary or closed-source use, a separate commercial license is available. Contact fyhou@vt.edu or yunhe.hou@gmail.com.

See NOTICE for full licensing details, trademark information, and citation requirements.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Author

Dr. Francis Yunhe Hou

Acknowledgments

This software builds upon the Generic Restoration Milestone (GRM) methodology and the HITS (Healing Touch for Power Systems) toolbox. Portions were developed with the assistance of Claude, an AI system made by Anthropic. All code has been reviewed, tested, and validated by the author.