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 https://rwl.github.io/PYPOWER/ and the API documentation.

Support

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

pypower@googlegroups.com

Changelog

Version 5.1.2 (2017-06-09)

  • [NEW] Configured continuous integration using Travis.

Version 5.1.0 (2017-06-09)

  • [NEW] Added Python 3 support.

Version 5.0.1 (2016-07-04)

  • [FIX] Fixed issue #21 and issue #25 in savecase() (pull request #26).

  • [CHANGE] Based on ‘recursion limit’ issues affecting savemat() in savecase(), converted non-scalars to arrays.

  • [NEW] Created t_savecase.py and added t_savecase() to test_pypower.py.

Version 5.0.0 (2015-05-29)

  • [CHANGE] 3-clause BSD License

Version 4.1.2 (2014-10-27)

Version 4.1.1 (2014-09-17)

  • [FIX] loadcase.py: Fixed NumPy 1.9 warning about “== None” comparisions.

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-5.1.2.tar.gz (269.4 kB view details)

Uploaded Source

Built Distribution

PYPOWER-5.1.2-py2.7.egg (679.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for PYPOWER-5.1.2.tar.gz
Algorithm Hash digest
SHA256 279e8fbb8d61077f572c51d8a87aad779cfa95d8eea079d199a0d4193cf6a697
MD5 e8e5c0e80863656a37d8404b4b970e7e
BLAKE2b-256 d63fc3127baabd154083349d7e899190f213e69ba5666a051ec884982982f75e

See more details on using hashes here.

File details

Details for the file PYPOWER-5.1.2-py2.7.egg.

File metadata

  • Download URL: PYPOWER-5.1.2-py2.7.egg
  • Upload date:
  • Size: 679.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PYPOWER-5.1.2-py2.7.egg
Algorithm Hash digest
SHA256 cb024161aadb74c9f953529b9fbb95dcc8fff1816a8669ceec35630c03a3b8a5
MD5 486e8693bd8eeddef96328cdec187b45
BLAKE2b-256 9cf9cc1956a4dce0418dc1fb4d470dce044037b4aad9dcdd1a66b4950ef1d604

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