锅炉压力的PID控制算法
Project description
PID锅炉燃烧器控制算法
例子
from pid import PID
pid = PID(kp=1.0, ki=0.0, kd=0.0,
set_pressure=0.5,
thresholds=(-10, 10),
throttle_limits=((30, 60), (40, 65), (50, 70)),
output_limits=(None, None),
auto_mode=True)
pid(input_gear=1, input_pressure=0.4, input_angle=59)
完整的API文档在 这里.
安装
pip install mix-pid
使用
每次的调用反馈返回此次推荐的油嘴档位和风门角度值
output_gear, output_angle = pid(input_pressure, input_angle)
参数说明
设置目标压力
pid.set_pressure = 0.5
设置Kp, Ki, Kd系数
pid.Ki = 1.0
pid.tunings = (1.0, 0.2, 0.4)
设置判断决策的阈值
pid.thresholds=(-10, 10)
设置燃烧器不同档位的风门角度限制
pid.throttle_limits=((30, 60), (40, 65), (50, 70))
设置PID输出限制避免出现integral windup
pid.output_limits = (0, 10) # output value will be between 0 and 10
pid.output_limits = (0, None) # output will always be above 0, but with no upper bound
设置手动/自动模式
pid.auto_mode=True
pid.auto_mode=False
许可证
Licensed under the MIT License.
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
mix-pid-0.0.2.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file mix-pid-0.0.2.tar.gz
.
File metadata
- Download URL: mix-pid-0.0.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbee17e48a9111b1e30301a767c090fce394ff443cc9a1bdfb4080e6bcc83517 |
|
MD5 | abbe5a9d783bb4e0b6877ceccb1d185e |
|
BLAKE2b-256 | d1bfd70e087b62d2e7b70c0dcfbc66556efb69b1e55d697fb589f4c92e80d642 |
File details
Details for the file mix_pid-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: mix_pid-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36176a346bd3685c819ac15386b867c89d6ad4a3d10b28d46865ae6d2840fc94 |
|
MD5 | 16d1781b94c8eb777a5543c4f3bd0011 |
|
BLAKE2b-256 | b2fb252ebe9b03d8cccb5a0fd003f7f615888a0928b69f42a889640b68f70791 |