This repository contains code and data relating to Comparative Withholding Behavior Analysis of Historical Energy Storage Bids in California.
Authors: Neal Ma, Ningkun Zheng, Ning Qi, Bolun Xu
The repository is structured as follows:
src/
: primary directory containing notebooks, data, and figuresdata/
: directory containing all processed dataDAP_CSV/
: day-ahead pricecsv
files in CAISO from LCG ConsultingES_BIDS/CAISO_ES_BIDS.parquet
: scraped energy storage bids from CAISO Daily Energy Storage ReportsCAISO_DAP.csv
: day-ahead CAISO prices from LCG Consulting in a singlecsv
fileCAISO_DAP.parquet
: same as above but in aparquet
fileCAISO_RTP.csv
: real-time CAISO prices from LCG Consulting in a singlecsv
fileCAISO_RTP.parquet
: same as above but in aparquet
fileoptimal_bids.csv
: optimal generated bids
figures/
: directory containing all figures included in the reportCAISO_ES_BID_FINAL_ANALYSIS.ipynb
: final analysis and figure generationCAISO_ES_BID_SCRAPING.ipynb
: scrapes data from CAISO Daily Energy Storage Reports and saves todata/ES_BIDS/CAISO_ES_BIDS.parquet
CAISO_ES_OPTIMAL_BIDS.ipynb
: generates optimal bids from real-time data and saves todata/optimal_bids.csv
key.md
: variable labels and definitions for data indata/ES_BIDS/CAISO_ES_BIDS.parquet
These notebooks should be ready-to-run out of the box in the following order:
CAISO_ES_BID_SCRAPING.ipynb
: Scrape new bid data (if you would like more updated data than available here). You may need to adjust this if the format of CAISO Daily Energy Storage Reports changeCAISO_ES_OPTIMAL_BIDS.ipynb
: Generate optimal bids usingdata/CAISO_RTP.csv
,data/CAISO_DAP.csv
, anddata/ES_BIDS/CAISO_ES_BIDS.parquet
. These files need to updated if more recent data is desiredCAISO_ES_BID_FINAL_ANALYSIS.ipynb
: Generate plots and carry out statistical analyses. You can directly run this notebook if you want to use the same data used in the report
Any questions about the code can be directed to Neal Ma (@nmadev on github)