Skip to content

GriRes/GRIM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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. It computes restoration milestones — critical decision points during the process of restoring a power grid after a blackout — using graph-theoretic algorithms, optimal power flow, and intelligent search strategies.

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

Features

  • Milestone-based restoration planning with greedy and backtracking solvers
  • Interactive GUI for restoration scenario visualization and editing
  • Full AC-OPF integration with reactive power modeling
  • Multiple test systems — IEEE 14, 30, 39, 57, 118 bus; RTS-24; and custom grids
  • Comprehensive reporting — 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

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_v3.0.0 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 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 AI-assisted programming tools (including OpenAI ChatGPT, Anthropic Claude, and xAI Grok); all code has been reviewed, tested, and validated by the author.