Skip to main content

Solves power flow and optimal power flow problems

Project description

PYPOWER is a power flow and Optimal Power Flow (OPF) solver. It is a port of MATPOWER to the Python programming language. Current features include:

  • DC and AC (Newton’s method & Fast Decoupled) power flow and

  • DC and AC optimal power flow (OPF)

Installation

PYPOWER depends upon:

It can be installed using pip:

$ pip install PYPOWER

Alternatively, download and unpack the tarball and install:

$ tar zxf PYPOWER-4.x.y.tar.gz
$ python setup.py install

Using PYPOWER

Installing PYPOWER creates pf and opf commands. To list the command options:

$ pf -h

PYPOWER includes a selection of test cases. For example, to run a power flow on the IEEE 14 bus test case:

$ pf -c case14

Alternatively, the path to a PYPOWER case data file can be specified:

$ pf /path/to/case14.py

The opf command has the same calling syntax. For example, to solve an OPF for the IEEE Reliability Test System and write the solved case to file:

$ opf -c case24_ieee_rts --solvedcase=rtsout.py

For further information please refer to http://www.pypower.org/ and the API documentation.

Support

Questions and comments regarding PYPOWER should be directed to the mailing list:

pypower@googlegroups.com

Changelog

Version 4.1.0 (2014-05-29)

  • [NEW] Support for Python 3 (3.3 and above).

  • [CHANGE] Updated to MATPOWER 4.1.

  • [REMOVED] Support for Python 2.5 and below.

Version 4.0.1 (2011-07-14)

  • [CHANGE] printpf.py: changed boolean operators from bitwise to logical to fix the output options

  • [FIX] savecase.py: adding indentation to produce valid Python modules

Version 4.0.0 (2011-07-07)

Initial release, port of MATPOWER version 4.0

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

PYPOWER-4.1.0.tar.gz (246.8 kB view details)

Uploaded Source

Built Distribution

PYPOWER-4.1.0-py2.py3-none-any.whl (380.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file PYPOWER-4.1.0.tar.gz.

File metadata

  • Download URL: PYPOWER-4.1.0.tar.gz
  • Upload date:
  • Size: 246.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PYPOWER-4.1.0.tar.gz
Algorithm Hash digest
SHA256 7378b9772ed9f6a2e95f43947ee41d9afad1a5898a37aa915dd14253bf02bad0
MD5 536c8f7157d1b05391e4477dc3349028
BLAKE2b-256 33e436265a009896ea13958e9a8884fab841860beed356bc4d3c017946e84c61

See more details on using hashes here.

File details

Details for the file PYPOWER-4.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for PYPOWER-4.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c37433613401814a7901b4fb3aab4a7fc194798faf0459414055b10b2d87bd80
MD5 d93420805d13d6bd3f02d4f705c4a5e2
BLAKE2b-256 e5bee489d873fee09bc571185b485fc300c2a12b762f671092bb442e2aca3c3e

See more details on using hashes here.

Supported by

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