Skip to main content

A python version of the NYgrid model

Project description

NYgrid-python

License: MIT Python Python Python package CodeQL

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

  1. Install Anaconda.
  2. Install Git.
  3. Clone the repository:
git clone https://github.com/boyuan276/NYgrid-python.git
  1. Create a conda environment:
conda env create -f NYgrid-python.yml
  1. Activate the environment:
conda activate NYgrid-python
  1. Install the package:
pip install -e .

Usage

  1. Activate the environment:
conda activate NYgrid-python
  1. Run the model:

    • Go to the examples folder.

    • 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

  1. Generation data: See examples/write_gen_prop_profiles_{case_name}.ipynb.

  2. Load data: See examples/write_load_profiles_{case_name}.ipynb.

See also

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nygrid-0.1.1.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nygrid-0.1.1-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

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

Hashes for nygrid-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c160389f13e6520aa44a3adaf1fff46f1436a8cfa198f37ce5b7cd4f049d52b9
MD5 d0d6a3ecbea8a83a9763e3cc83613772
BLAKE2b-256 d594485b2cfeb157833cdc9fd6b06175839fc04cb22902f9245ad3542fac4e82

See more details on using hashes here.

Provenance

The following attestation bundles were made for nygrid-0.1.1.tar.gz:

Publisher: python-publish.yml on boyuan276/NYgrid-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for nygrid-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3164ab70d6a6688ab72ea3ecfeb52bb8336e0c6a536697cd6433e6e4258005ba
MD5 1f1208b918c8d853f3a2b3407e1824c8
BLAKE2b-256 4e2475e21caa41eee120cb934aeabefdf9efda1a4866869a66b78ba047ef594a

See more details on using hashes here.

Provenance

The following attestation bundles were made for nygrid-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on boyuan276/NYgrid-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page