Skip to content

boyuan276/NYgrid-python

Repository files navigation

NYgrid-python

License: MIT Python Python Python package

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

About

A python version of the NYgrid model.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published