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 model with default parameters:

      python ex_opf_wo_renew.py
      
    • Run the model with renewable integration:

      # With future distributed solar integration
      python ex_opf_w_future_solar.py
      
      # With offshore wind integration
      python ex_opf_w_offshore_wind.py
      
      # With solar, offshore wind, and building electrification integration
      python ex_opf_w_renew.py
      

Note: Renewable timeseries data need to be prepared before running the model.

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.0.tar.gz (33.4 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.0-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file nygrid-0.1.0.tar.gz.

File metadata

  • Download URL: nygrid-0.1.0.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.18

File hashes

Hashes for nygrid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b070d3cf78e6d271f7ce09fee17d936482231924a32c071fafaedb10bcdc16f0
MD5 b8473d36c7b4c5f7950fb76d697bee4e
BLAKE2b-256 eef57f611717d179f65d5c07eeb38a117df1ead884dfe3a434fe55ea4f35b8aa

See more details on using hashes here.

File details

Details for the file nygrid-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nygrid-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.18

File hashes

Hashes for nygrid-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a17a4d9271666d25b5884e51ed172ea6ef932e5d8ac1160805b18ec6f45682df
MD5 af39d14942e2186d0b2b6b65737688e9
BLAKE2b-256 65617e4be2ade416cbacf731096ca9a2f4370944d5c7e41b5f5a415b9a63c337

See more details on using hashes here.

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