A geographically-accurate synthetic grid in California.
Report Bug
·
Request Feature
Project Link: https://github.com/WISPO-POP/SyntheticCaliforniaGrid
Time-series data (load and renewable generation) link: https://tinyurl.com/SyntheticCaliforniaGridData
This repository contains the data files the California Test System (CATS), which is a geographically-accurate, synthetic electric grid model that is located in California. This model was created using publicly available geographic data of California's actual transmission lines, substations, and power plants, which we combined with invented connections and parameters that are "realistic but not real". For more information about how this network model was created, please refer to our publication: California Test System (CATS): A Geographically Accurate Test System based on the California Grid.
The grid model is available in two formats. The MATPOWER file format is suitable for electric power system simulation and optimization. The geographic information systems (GIS) files, in .GEOJSON and .CSV formats, are suitable for geospatial analyses.
We also provide the load and renewable generation profiles that we used in the creation and evaluation of this grid. Since some of these data files exceed the size limit on GitHub, they are available in a Google Drive folder at this link: https://tinyurl.com/SyntheticCaliforniaGridData.
Clone the repository
git clone https://github.com/WISPO-POP/CATS-CaliforniaTestSystem.gitRun a DC optimal power flow using PowerModels.jl by executing the file run_opf.jl.
The CATS was updated on November 11, 2023. All previous versions are available in the 'Archive' directory.
If you use this repository, please cite our publication:
@article{CATS2024,
author={Taylor, Sofia and Rangarajan, Aditya and Rhodes, Noah and Snodgrass, Jonathan and Lesieutre, Bernard C. and Roald, Line A.},
journal={IEEE Transactions on Energy Markets, Policy and Regulation},
title={California Test System (CATS): A Geographically Accurate Test System Based on the California Grid},
year={2024},
volume={2},
number={1},
pages={107-118},
doi={10.1109/TEMPR.2023.3338568}
}
The California Test System was developed by researchers at the University of Wisconsin-Madison and Texas A&M University:
- Sofia Taylor*, UW Madison
- Aditya Rangarajan*, UW Madison
- Noah Rhodes, UW Madison
- Jonathan Snodgrass, Texas A&M
- Bernie Lesieutre, UW Madison
- Line A. Roald, UW Madison
* Indicates equal contribution.
This work is funded in part by the Power Systems Engineering Research Center (PSERC) through project S-91, the National Science Foundation (NSF) under Grant. No. ECCS-2045860, and the NSF Graduate Research Fellowship Program under Grant No. DGE-1747503.
| Folder | What it contains | Main contributor (git history) | Start here |
|---|---|---|---|
MATPOWER/ |
Current CATS network as a MATPOWER case file: 8,870 buses, 3,892 generators, 10,823 branches | Sofia Taylor (first version of the file added by Aditya Rangarajan) | CaliforniaTestSystem.m |
Script/ |
Julia script that solves an AC optimal power flow for each hour, using hourly load and solar/wind data | Aditya Rangarajan, Dinah Shi | test_eval.jl |
GIS/ |
Current GIS data. CATS_buses.csv and CATS_gens.csv have one row per MATPOWER bus and generator, in the same order, with latitude and longitude. CATS_lines.json is GeoJSON with one feature per branch (10,816 LineStrings and 7 MultiLineStrings). |
Sofia Taylor | CATS_buses.csv |
Archive/ |
The earlier CATS release (before the 2023-11-11 update): MATPOWER file, GeoJSON files of lines, substations and added nodes, CSV files that map MATPOWER indices to GIS indices, and the 2019 EIA generator list | Sofia Taylor (the three mapping CSV files were written by Aditya Rangarajan) | - |
Files at the repository root:
| File | What it is |
|---|---|
run_opf.jl |
Loads MATPOWER/CaliforniaTestSystem.m with PowerModels.jl and solves a DC optimal power flow (DCPPowerModel) with Ipopt |
logo.png |
Logo shown at the top of this README |
LICENSE |
BSD 3-Clause licence |
The repository has no Julia Project.toml, so package versions are not pinned.
- Install Julia 1.x from https://julialang.org/downloads/.
- Install the packages the scripts load. From a Julia prompt:
The Ipopt package installs the Ipopt solver itself; no separate solver install is needed.
import Pkg Pkg.add(["PowerModels", "JuMP", "Ipopt", "CSV", "JSON", "DataFrames"])
Script/test_eval.jlalso hasusing Gurobi. Add"Gurobi"to the list above if you run it, or seeScript/README.md.- Optional: to use the case in MATLAB or GNU Octave instead of Julia, install MATPOWER (https://matpower.org) and add it to the MATLAB/Octave path.
- For
Script/test_eval.jlonly: put the two time-series files it reads in adata/folder at the repository root (see Inputs and outputs), and create an emptyScript/solutions/folder.
All paths in the scripts are relative; there are no absolute paths to edit. run_opf.jl must be run from the repository root and Script/test_eval.jl from the Script folder.
DC optimal power flow of the full case, from the repository root:
julia run_opf.jl
By default run_opf.jl does not save the result; the console shows only the PowerModels and Ipopt log messages. Set save_to_JSON = true near the top of the file to write it to pf_solution.json in the current folder, or run the script from a Julia prompt with include("run_opf.jl") and then inspect solution["termination_status"] and solution["objective"].
The same case in MATLAB or Octave with MATPOWER, from the repository root:
addpath('MATPOWER');
mpc = loadcase('CaliforniaTestSystem');
results = rundcopf(mpc);Hourly AC optimal power flow, from the Script folder:
cd Script
julia test_eval.jl
See Script/README.md for its settings and the range of hours it solves.
MATPOWER/CaliforniaTestSystem.mis the network input for both Julia scripts.Script/test_eval.jlalso readsGIS/CATS_gens.csv(theFuelTypecolumn),data/Load_Agg_Post_Assignment_v3_latest.csv(hourly load at each bus) anddata/HourlyProduction2019.csv(hourlySolarandWindtotals). The twodata/files are not in the repository;data/is listed in.gitignore. The Google Drive folder linked above holds the load and renewable generation profiles; the script expects the file names given here.run_opf.jlwritespf_solution.jsononly whensave_to_JSON = true.Script/test_eval.jlwrites, insideScript/, onesolutions/solution_<hour>.jsonfile per hour solved andtermination_status_ACOPF_corrected_cc.txtwith the solver status of each hour.
Script/test_eval.jlneeds two data files that are not in the repository (see above).- As committed,
Script/test_eval.jlsolves only hours 8649 to 8760 (for k = 8649:N). Change the loop start to1for the full year. Script/test_eval.jlloads Gurobi.jl (using Gurobi, Ipopt) although the active solver is Ipopt, so it stops at that line if Gurobi.jl is not installed.Script/test_eval.jlwrites toScript/solutions/by default but does not create that folder.
Details and the remaining script issues are in Script/README.md.
From the git history:
- Sofia Taylor: 26 commits (15 as "Sofia Taylor", 11 as "Sofia-Taylor")
- Aditya Rangarajan: 8 commits
- Dinah Shi: 2 commits
- First commit 2022-08-26; last code commit 2024-02-28 (the MATPOWER case). The README citation was last updated on 2024-03-27.
- The network model was replaced on 2023-11-11 (commit "CATS update (v2)") and the earlier files moved to
Archive/. The currentGIS/files were last changed on 2023-11-15 (CATS_lines.json) and 2023-12-12 (the two CSV files). The MATPOWER case was last changed on 2024-02-28, when its function was renamed toCaliforniaTestSystem. Script/was added on 2024-02-07 and last changed on 2024-02-21.run_opf.jlwas last changed on 2022-10-04.