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格式记录数据,因为其更加灵活。以下是两种方式的说明链接:

XML格式 (推荐!)

ZIP格式

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

Uploaded Source

Built Distribution

fpowerkit-0.0.10-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fpowerkit-0.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 973168ef03a658bff3490c08df2d9625e3cec76190a87ed5a7677d625069ce9d
MD5 a4fbedd4300056b14f88175b05824a90
BLAKE2b-256 22e7e39b91dd4a12488fc144e123db3d81b79e76e423c65aa2267db3f18bac1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fpowerkit-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3bd039d78eccad574dffd495c7560833fc3d0c53a60825ccf13ec5cbb3d66e23
MD5 80f31c5b8182b61246c451d934343b1f
BLAKE2b-256 20ac85015c34905ba505e5e03e3a106443d010ef852468da5105e439e3383aff

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