Skip to main content

EGRET: Electrical Grid Research and Engineering Tools.

Project description

EGRET GitHub CI

EGRET Overview

EGRET is a Python-based package for electrical grid optimization based on the Pyomo optimization modeling language. EGRET is designed to be friendly for performing high-level analysis (e.g., as an engine for solving different optimization formulations), while also providing flexibility for researchers to rapidly explore new optimization formulations.

Major features:

  • Solution of Unit-Commitment problems
  • Solution of Economic Dispatch (optimal power flow) problems (e.g., DCOPF, ACOPF)
  • Library of different problem formulations and approximations
  • Generic handling of data across model formulations
  • Declarative model representation to support formulation development

EGRET is available under the BSD License (see LICENSE.txt)

Primary Contributors

Ben Knueven

  • Unit commitment
  • ModelData
  • DCOPF
  • PTDF

Anya Castillo

  • ModelData
  • DCOPF
  • ACOPF
  • AC relaxations
  • PTDF

Carl Laird

  • ModelData
  • DCOPF
  • ACOPF
  • AC relaxations

Michael Bynum

  • DCOPF
  • ACOPF
  • AC relaxations

Darryl Melander

  • Unit commitment

JP Watson

  • Unit commitment
  • AC relaxations

Getting Started

Installation

  • EGRET is a Python package and therefore requires a Python installation. We recommend using Anaconda with the latest Python (https://www.anaconda.com/distribution/).

  • These installation instructions assume that you have a recent version of Pyomo installed, in addition to a suite of relevant solvers (see www.pyomo.org for additional details).

  • Download (or clone) EGRET from this GitHub site.

  • From the main EGRET folder (i.e., the folder containing setup.py), use a terminal (or the Anaconda prompt for Windows users) to run setup.py to install EGRET into your Python installation - as follows:

    pip install -e .
    

Requirements

  • Python 3.7 or later
  • Pyomo version 6.4.0 or later
  • pytest
  • Optimization solvers for Pyomo - specific requirements depends on the models being solved. EGRET is tested with Gurobi or CPLEX for MIP-based problems (e.g., unit commitment) and Ipopt (with HSL linear solvers) for NLP problems.

We additionally recommend that EGRET users install the open source CBC MIP solver. The specific mechanics of installing CBC are platform-specific. When using Anaconda on Linux and Mac platforms, this can be accomplished simply by:

conda install -c conda-forge coincbc

The COIN-OR organization - who developers CBC - also provides pre-built binaries for a full range of platforms on https://bintray.com/coin-or/download.

Testing the Installation

To test the functionality of the unit commitment aspects of EGRET, execute the following command from the EGRET models/tests sub-directory:

pytest test_unit_commitment.py

If EGRET can find a commerical MIP solver on your system via Pyomo, EGRET will execute a large test suite including solving several MIPs to optimality. If EGRET can only find an open-source solver, it will execute a more limited test suite which mostly relies on solving LP relaxations. Example output is below.

=================================== test session starts ==================================
platform darwin -- Python 3.7.7, pytest-5.4.2, py-1.8.1, pluggy-0.13.0
rootdir: /home/some-user/egret
collected 21 items

test_unit_commitment.py s....................                                       [100%]

========================= 20 passed, 1 skipped in 641.80 seconds =========================

How to Cite EGRET in Your Research

If you are using the unit commitment functionality of EGRET, please cite the following paper:

On Mixed-Integer Programming Formulations for the Unit Commitment Problem Bernard Knueven, James Ostrowski, and Jean-Paul Watson. INFORMS Journal on Computing (Ahead of Print) https://pubsonline.informs.org/doi/10.1287/ijoc.2019.0944

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

gridx_egret-0.6.1.tar.gz (218.2 kB view details)

Uploaded Source

Built Distribution

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

gridx_egret-0.6.1-py3-none-any.whl (276.4 kB view details)

Uploaded Python 3

File details

Details for the file gridx_egret-0.6.1.tar.gz.

File metadata

  • Download URL: gridx_egret-0.6.1.tar.gz
  • Upload date:
  • Size: 218.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gridx_egret-0.6.1.tar.gz
Algorithm Hash digest
SHA256 4c090b6601eeb96f0d1732f81c7c717705de73d5c60eaf63a52b13b56221410d
MD5 a7014b716b2d74f882d59eabd5895994
BLAKE2b-256 5df555b2f5c192889919c637837c2f2462aa46d1678c4efa60a9e763dc9c2489

See more details on using hashes here.

File details

Details for the file gridx_egret-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: gridx_egret-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 276.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gridx_egret-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37c7a2f1dadf691b8aa49f5a737db7feb3eeef27e91f92b4a03209671fabf74d
MD5 8d30d8c9680c8363f62fa90cdaba580f
BLAKE2b-256 23624845b58fc8f0ed4f40a11ffef27830b2b8e00aded5e879227e458cf8832e

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