# OPFData (GridOpt) Release 1 N-1: Solved AC Optimal Power Flow Problems with Line, Transformer and Generator Outages

## Facts

- Provider: Google DeepMind (Lovett et al.)
- License: CC-BY-4.0 (https://storage.googleapis.com/gridopt-dataset/LICENSE)
- Stored at: Google Cloud Storage, gs://gridopt-dataset/dataset_release_1_nminusone (us)
- Access: public, readable without an account
- Category: Energy
- Source: https://arxiv.org/abs/2406.07234
- Page: https://scigantic.com/archive/ca34894a-1cbb-5126-9984-32e300990e33
- Keywords: Energy, graph learning, benchmark, Google Cloud Storage

## About

DeepMind GridOpt (OPFData), a large dataset of solved AC optimal power flow (AC-OPF) problems for training graph neural network and other machine learning OPF solvers. Base grids come from the PGLib-OPF benchmark library and range from small IEEE test systems to large GOC and PEGASE networks; the folder listing shows grids such as pglib_opf_case118_ieee, pglib_opf_case10000_goc and pglib_opf_case13659_pegase. Problems were solved with PowerModels.jl and the IPOPT interior-point solver, and each grid holds 300,000 solved examples per perturbation type, split into 20 tar.gz shards (about 317 MB each for case118, 19 GB for case10000, 30 GB for case13659). This folder is the topological (N-1) release: in each example the load is perturbed and one AC line, transformer or generator is removed at random, so models must generalize across changing grid topology, the contingency setting used in security-constrained operation. Examples are stored as heterogeneous graphs in JSON with the optimal dispatch, bus voltages and branch flows; PyTorch Geometric reads them through torch_geometric.datasets.OPFDataset with topological perturbations enabled. Licensed CC-BY-4.0 by DeepMind (LICENSE file in the bucket); cite Lovett et al. 2024, OPFData (arXiv:2406.07234), and the PGLib-OPF sources.

## Load the data

```python
import gcsfs
fs = gcsfs.GCSFileSystem(token='anon')
fs.ls('gridopt-dataset/dataset_release_1_nminusone/', detail=False)[:10]
```

Lists the files with anonymous access. Runs on any machine, with no cloud account.

## Data structure

Example file: `dataset_release_1_nminusone/pglib_opf_case10000_goc_0.tar.gz`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/ca34894a-1cbb-5126-9984-32e300990e33
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/ca34894a-1cbb-5126-9984-32e300990e33
- Over MCP: `get_schema_card` with id `ca34894a-1cbb-5126-9984-32e300990e33` at https://api.scigantic.com/mcp

## Related topics

- [Benchmark datasets](https://scigantic.com/topics/benchmark)
- [Energy datasets](https://scigantic.com/topics/energy)
- [Graph learning datasets](https://scigantic.com/topics/graph-learning)
