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:
License & Copyright
Copyright (c) 1996-2015, Power System Engineering Research Center (PSERC) Copyright (c) 2010-2015 Richard Lincoln
The code in PYPOWER is distributed under the 3-clause BSD license below. The PYPOWER case files distributed with PYPOWER are not covered by the BSD license. In most cases, the data has either been included with permission or has been converted from data available from a public source.
While not required by the terms of the license, we do request that publications derived from the use of MATPOWER explicitly acknowledge that fact by citing:
R. D. Zimmerman, C. E. Murillo-Sanchez, and R. J. Thomas, “MATPOWER: Steady-State Operations, Planning and Analysis Tools for Power Systems Research and Education,” Power Systems, IEEE Transactions on, vol. 26, no. 1, pp. 12–19, Feb. 2011.
Links
Changelog
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)
[FIX] Fixed error in runopf() (issue #11).
[FIX] Fixed runpf.py with ENFORCE_Q_LIMS option (pull request #13).
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file PYPOWER-5.1.0.tar.gz
.
File metadata
- Download URL: PYPOWER-5.1.0.tar.gz
- Upload date:
- Size: 269.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b4e97da4e7ddca92e08e96f0098cc0ed2512d170ad303304902f464c688176 |
|
MD5 | 2e33681092112b3a86fe39cb57778bb2 |
|
BLAKE2b-256 | b7313bf12272bba3b4295aea088b0e968e9fecdf155b1df94269e32d0d600bd2 |
File details
Details for the file PYPOWER-5.1.0-py2.7.egg
.
File metadata
- Download URL: PYPOWER-5.1.0-py2.7.egg
- Upload date:
- Size: 679.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42e086359c736c3ad89c403765ac06147aea657f007ae30c02f9d44dcc611fad |
|
MD5 | e61dc2e6d4358f359f94939728bf88de |
|
BLAKE2b-256 | 559676f1edfeb707246249696b1b222c6386d8efe5bf55174a652d881d545a15 |