A python version of the NYgrid model
Project description
NYgrid-python
A python version of the NYgrid model.
It contains the following components:
- Optimal power flow (OPF) model
- Renewable integration
- Building electrification
- Battery storage
- Electric vehicle (EV) charging
Installation
git clone https://github.com/boyuan276/NYgrid-python.git
- Create a conda environment:
conda env create -f NYgrid-python.yml
- Activate the environment:
conda activate NYgrid-python
- Install the package:
pip install -e .
Usage
- Activate the environment:
conda activate NYgrid-python
-
Run the model:
-
Go to the
examplesfolder. -
Run the base year 2018 case:
python 01_opf_2018NewParams_daily.py -
Run the future year 2030 with policy scenarios:
# 1) 2030BaselineCase python 02_opf_2030BaselineCase_daily.py # 2) 2030ContractCase python 03_opf_2030ContractCase_daily.py # 3) 2030StateScenario python 04_opf_2030StateScenario_daily.py
-
Note: Generation and load properties and profiles need to be prepared before running these cases.
-
Data
-
Generation data: See
examples/write_gen_prop_profiles_{case_name}.ipynb. -
Load data: See
examples/write_load_profiles_{case_name}.ipynb.
See also
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nygrid-0.1.1.tar.gz.
File metadata
- Download URL: nygrid-0.1.1.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c160389f13e6520aa44a3adaf1fff46f1436a8cfa198f37ce5b7cd4f049d52b9
|
|
| MD5 |
d0d6a3ecbea8a83a9763e3cc83613772
|
|
| BLAKE2b-256 |
d594485b2cfeb157833cdc9fd6b06175839fc04cb22902f9245ad3542fac4e82
|
Provenance
The following attestation bundles were made for nygrid-0.1.1.tar.gz:
Publisher:
python-publish.yml on boyuan276/NYgrid-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nygrid-0.1.1.tar.gz -
Subject digest:
c160389f13e6520aa44a3adaf1fff46f1436a8cfa198f37ce5b7cd4f049d52b9 - Sigstore transparency entry: 155107932
- Sigstore integration time:
-
Permalink:
boyuan276/NYgrid-python@52e28f2701bb19d1c7c9517d5c9c0b0a5a13b3b8 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/boyuan276
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@52e28f2701bb19d1c7c9517d5c9c0b0a5a13b3b8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nygrid-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nygrid-0.1.1-py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3164ab70d6a6688ab72ea3ecfeb52bb8336e0c6a536697cd6433e6e4258005ba
|
|
| MD5 |
1f1208b918c8d853f3a2b3407e1824c8
|
|
| BLAKE2b-256 |
4e2475e21caa41eee120cb934aeabefdf9efda1a4866869a66b78ba047ef594a
|
Provenance
The following attestation bundles were made for nygrid-0.1.1-py3-none-any.whl:
Publisher:
python-publish.yml on boyuan276/NYgrid-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nygrid-0.1.1-py3-none-any.whl -
Subject digest:
3164ab70d6a6688ab72ea3ecfeb52bb8336e0c6a536697cd6433e6e4258005ba - Sigstore transparency entry: 155107933
- Sigstore integration time:
-
Permalink:
boyuan276/NYgrid-python@52e28f2701bb19d1c7c9517d5c9c0b0a5a13b3b8 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/boyuan276
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@52e28f2701bb19d1c7c9517d5c9c0b0a5a13b3b8 -
Trigger Event:
release
-
Statement type: