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格式 (推荐!)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fpowerkit-0.0.11.tar.gz.
File metadata
- Download URL: fpowerkit-0.0.11.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5e30c0eba5bda394da211852f3e0ec5e1def09c7a58bdb7872ac08ff52f429f
|
|
| MD5 |
57bdd0632b0affef0b4d1c53b56a80db
|
|
| BLAKE2b-256 |
8a8b923e7293c6b64c0702706e4524a5a78cd8f98e1d6c2e83dcede7700bc75d
|
File details
Details for the file fpowerkit-0.0.11-py3-none-any.whl.
File metadata
- Download URL: fpowerkit-0.0.11-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54822075fb4d0236b7bbefeaecd4284eeb60ba440a2f1c05ae310060f27e571f
|
|
| MD5 |
3953d15ed9c690b57f783f05bc8abf46
|
|
| BLAKE2b-256 |
4dff257cf5cf62eb9fd3cfca8eb4a0d5231e5cf9d3c7d726fc91600a4200581b
|