Skip to main content

Development Status

PYPOWER is no longer actively maintained. However, should improvements to PYPOWER be required then the original author may be available on contract. Please do not hesitate to get in contact directly.

Introduction

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

Metadata

Release files for PYPOWER 5.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PYPOWER 5.1.4
File Size Uploaded
PYPOWER-5.1.4.tar.gz 262.7 kB Details

Release files / PYPOWER-5.1.4.tar.gz

Download URL PYPOWER-5.1.4.tar.gz
Size 262.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a3e290111d344190713f61b4d85338b97dad42421d94521bf5b7bb2f080270b5
BLAKE2b-256 checksum
How to use checksums
ece22e3dbb314f08ff0222aba90ada335f18bc3e7a022654d949b0d43f027b88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

5.1.19

2 release files

5.1.18

2 release files

5.1.16

2 release files

5.1.15

2 release files

5.1.14

2 release files

5.1.13

1 release file

5.1.5

1 release file

This release

5.1.4 This release

1 release file

5.1.3

1 release file

5.1.2

2 release files

5.1.0

2 release files

5.0.1

1 release file

4.1.2

2 release files

4.1.1

2 release files

4.1.0

2 release files

4.0.1

5 release files

4.0.0

5 release files

0.1.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page