Skip to main content

A Distflow PDN solver based on Gurobi.

Project description

FPowerKit 配电网运算组件

本仓库已上线PyPI,您可以通过pip install fpowerkit直接以Python包的形式安装使用本仓库的代码!

IEEE33和IEEE69节点的配网数据从公开渠道收集。除配网数据以外,本仓库代码均遵循LGPL3.0协议使用。

简介

  • 依赖于feasytools和gurobipy: pip install feasytools gurobipy(请自行安装Gurobi并申请许可证)
  • 包含电网的描述(含母线、发电机、线路等)和采用Gurobi的配电网DistFlow模型求解。
  • 优化目标为“发电成本最小”。发电成本模型为二次函数$f(x)=ax^2+bx+c$。
  • 内含IEEE 33节点配电网和IEEE 69节点配电网,可通过以下方式快速创建:
from fpowerkit import PDNCases
grid_obj33 = PDNCases.IEEE33()
grid_obj69 = PDNCases.IEEE69()

使用

克隆本仓库,并输入以下命令开始仿真:

python main.py -g cases/ieee33.grid.zip

请注意上述命令不适用于pip安装的版本。

ieee33描述了IEEE 33节点配电网模型。换成nodes3则是一个极简版3节点辐射形配电网模型,结构如下:

G0  G1
|   |
B0->B1->B2
    |   |
    L1  L2

您也换成自己的配电网文件来求解,例如python main.py -g path/to/your_zipfile.zip

配电网文件格式

目前,我们提供了2种方式记录配电网的结构和负荷信息,分别为ZIP格式和XML格式,我们推荐使用XML格式记录数据,因为其更加灵活。以下是两种方式的说明链接:

ZIP格式

XML格式 (推荐!)

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

fpowerkit-0.0.9.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

fpowerkit-0.0.9-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file fpowerkit-0.0.9.tar.gz.

File metadata

  • Download URL: fpowerkit-0.0.9.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.6

File hashes

Hashes for fpowerkit-0.0.9.tar.gz
Algorithm Hash digest
SHA256 832b21819c955fb1e51eefb78ca2b6d19b13801945425db803e3f54ef28f0eea
MD5 247be57e0032e959afee4740d35b9905
BLAKE2b-256 000b68a3c5c1639b76f876b0d530fe43e8e730cbb6c4fb336f4ad5e5c35c9c41

See more details on using hashes here.

File details

Details for the file fpowerkit-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: fpowerkit-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.6

File hashes

Hashes for fpowerkit-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8913b4e26a1553012c959161885c0ef931143d22a34cec38f3bfe38e6050a735
MD5 d5bd0671f8a41845672ca4d2fec0bcdb
BLAKE2b-256 0d72c344263c94ec81cec4f33cadcceb0bbc87710f40b9de53458a27fb203a2d

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