CN111258213A - 一种基于模糊自整定pid的温度控制的方法 - Google Patents

一种基于模糊自整定pid的温度控制的方法 Download PDF

Info

Publication number
CN111258213A
CN111258213A CN202010159295.2A CN202010159295A CN111258213A CN 111258213 A CN111258213 A CN 111258213A CN 202010159295 A CN202010159295 A CN 202010159295A CN 111258213 A CN111258213 A CN 111258213A
Authority
CN
China
Prior art keywords
value
fuzzy
difference
obtaining
temperature control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010159295.2A
Other languages
English (en)
Inventor
胡晓
罗伟
方家勇
吴灿阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ruitong Technology Co ltd
Original Assignee
Shenzhen Ruitong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ruitong Technology Co ltd filed Critical Shenzhen Ruitong Technology Co ltd
Priority to CN202010159295.2A priority Critical patent/CN111258213A/zh
Publication of CN111258213A publication Critical patent/CN111258213A/zh
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B11/00Automatic controllers
    • G05B11/01Automatic controllers electric
    • G05B11/36Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential
    • G05B11/42Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential for obtaining a characteristic which is both proportional and time-dependent, e.g. P. I., P. I. D.
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/0265Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric the criterion being a learning criterion
    • G05B13/0275Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric the criterion being a learning criterion using fuzzy logic only
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/04Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators
    • G05B13/042Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators in which a parameter or coefficient is automatically adjusted to optimise the performance
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D23/00Control of temperature
    • G05D23/19Control of temperature characterised by the use of electric means
    • G05D23/1919Control of temperature characterised by the use of electric means characterised by the type of controller

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Automation & Control Theory (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Feedback Control In General (AREA)
  • Control Of Temperature (AREA)

Abstract

本发明涉及温度控制技术领域,特别涉及一种基于模糊自整定PID的温度控制的方法,得到当前温度与目标温度的偏差值E,以及当前偏差值与上次偏差值的差值EC;将偏差值E和差值EC作为模糊控制器的输入,Kp、Ki、Kd作为输出;确认差值E和差值EC的模糊子集,并根据量化结果和模糊化处理后得到该输入子集的隶属度;为了提高系统响应速度,根据调节初期、调节中期调节后期选取不同大小的Kp值、Ki值和Kd值,以建立模糊规则表;根据目标温度和当前温度得到差值的大小、方向和变化趋势,通过模糊控制器作出决策,经过解模糊处理以使其与具体的物理量相对应得到PID控制器的输入参数Kp、Ki、Kd。本发明的控制方法使整个运行过程具有快速、高效的调节效果。

Description

一种基于模糊自整定PID的温度控制的方法
技术领域
本发明涉及温度控制技术领域,特别涉及一种基于模糊自整定PID的温度控制的方法。
背景技术
在一些需要自动调节温度的场景中常用PID控制,PID控制器(比例-积分-微分控制器) 是一个在工业控制应用中常见的反馈回路部件。但是在现实控制中,被控系统并非是线性时不变的,随着时间和被控环境的变化,往往需要动态调整PID的参数,所以需要设计一种温度控制方法正好能够满足这一需求。
发明内容
为了克服现有技术的上述缺陷,本发明提供一种基于模糊自整定PID的温度控制的方法,以解决上述背景技术中提出的问题。
本发明解决现有技术中的问题所采用的技术方案为:一种基于模糊自整定PID的温度控制的方法,
得到当前温度与目标温度的偏差值E,以及当前偏差值与上次偏差值的差值EC;
将偏差值E和差值EC作为模糊控制器的输入,Kp、Ki、Kd作为输出;
确认差值E和差值EC的模糊子集,并根据量化结果和模糊化处理后得到该输入子集的隶属度;
为了提高系统响应速度,根据调节初期、调节中期调节后期选取不同大小的Kp值、Ki 值和Kd值,以建立模糊规则表;
根据目标温度和当前温度得到差值的大小、方向和变化趋势,通过模糊控制器作出决策,经过解模糊处理以使其与具体的物理量相对应得到PID控制器的输入参数Kp、Ki、Kd。
作为本发明的优选方案,所述偏差值E和差值EC的模糊子集均为{NB,NM,NS,ZO,PS,PM,PB},其子集分别表示为:负大、负中、负小、零、正小、正中、正大,输入范围在基本论域内,通过线性变化公式进行转化,完成输入的模糊化。
作为本发明的优选方案,所述Kp值大小的选取方式包括调节初期应适当取较大的Kp值以提高响应速度,而在调节中期,Kp则取较小值,以使系统具有较小的超调并保证一定的响应速度;而在调节过程后期再将Kp值调到较大值来减小静差,提高控制精度。
作为本发明的优选方案,所述Ki值大小的选取方式包括调节过程的初期,为防止积分饱和,其积分作用应当弱一些,Ki值甚至可以取零;而在调节中期,为了避免影响稳定性,Ki 值应该比较适中;最后在过程的后期,则应增强积分作用,以减小调节静差,Ki值应该取较大。
作为本发明的优选方案,所述Kd值大小的选取方式包括在调节初期,Kd值应该应该较大以应加大微分作用,这样可得到较小甚至避免超调;而在中期,由于调节特性对Kd值的变化比较敏感,Kd值应该比较适中;然后在调节后期,Kd值应减小,以减小被控过程的制动作用,进而补偿在调节过程初期由于Kd值较大所造成的调节过程的时间延长。
与现有技术相比,本发明具有以下技术效果:
本发明中一种基于模糊自整定PID的温度控制的方法,在温度控制系统中,对于时变非线性系统通常会出现调节速度慢、超出或达不到设置的温度,而本发明的控制方法使整个运行过程具有快速、高效的调节效果。
附图说明
图1是本发明一种基于模糊自整定PID的温度控制的方法的原理图;
图2是本发明一种基于模糊自整定PID的温度控制的方法中实施例的原理流程图。
具体实施方式
下面结合附图对本发明的具体实施方式作进一步说明。在此需要说明的是,对于这些实施方式的说明用于帮助理解本发明,但并不构成对本发明的限定。此外,下面所描述的本发明实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互组合。
如图1和图2所示:一种基于模糊自整定PID的温度控制的方法,
S1、得到当前温度与目标温度的偏差值E,以及当前偏差值与上次偏差值的差值EC;
S2、将偏差值E和差值EC作为模糊控制器的输入,Kp、Ki、Kd作为输出;
S3、确认差值E和差值EC的模糊子集,并根据量化结果和模糊化处理后得到该输入子集的隶属度;
S4、为了提高系统响应速度,根据调节初期、调节中期调节后期选取不同大小的Kp值、 Ki值和Kd值,以建立模糊规则表;
S5、根据目标温度和当前温度得到差值的大小、方向和变化趋势,通过模糊控制器作出决策,经过解模糊处理以使其与具体的物理量相对应得到PID控制器的输入参数Kp、Ki、 Kd。
作为本发明的优选方案,所述偏差值E和差值EC的模糊子集均为{NB,NM,NS,ZO,PS,PM,PB},其子集分别表示为:负大、负中、负小、零、正小、正中、正大,输入范围在基本论域内,通过线性变化公式进行转化,完成输入的模糊化。
作为本发明的优选方案,所述Kp值大小的选取方式包括调节初期应适当取较大的Kp值以提高响应速度,而在调节中期,Kp则取较小值,以使系统具有较小的超调并保证一定的响应速度;而在调节过程后期再将Kp值调到较大值来减小静差,提高控制精度,如下列表所示:
Figure BDA0002405189640000031
表1
作为本发明的优选方案,所述Ki值大小的选取方式包括调节过程的初期,为防止积分饱和,其积分作用应当弱一些,Ki值甚至可以取零;而在调节中期,为了避免影响稳定性,Ki 值应该比较适中;最后在过程的后期,则应增强积分作用,以减小调节静差,Ki值应该取较大,如下列表所示:
Figure BDA0002405189640000032
表2
作为本发明的优选方案,所述Kd值大小的选取方式包括在调节初期,Kd值应该应该较大以应加大微分作用,这样可得到较小甚至避免超调;而在中期,由于调节特性对Kd值的变化比较敏感,Kd值应该比较适中;然后在调节后期,Kd值应减小,以减小被控过程的制动作用,进而补偿在调节过程初期由于Kd值较大所造成的调节过程的时间延长,如下列表所示:
Figure BDA0002405189640000041
表3
在本申请的具体实施例中,以自动恒温水壶为例;
1、例如一款自动恒温水壶,ADC采集到数据转换后会得到与目标温度的偏差E,以及当前偏差与上次偏差的差值EC。例如目标温度为60,实际温度20则偏差E为40,而上一时刻的偏差为45,EC为40–45=-5。对E和EC进行模糊化,假设E的区间为-100到100, EC的区间为-20到20。将E的区间分成8部分,分别为-100~-75,-75~-50,-50~-25,-25~0, 0~25,25~50,50~75,75~100。把-75,-50,-25,0,25,50,75分别用NB,NM,NS, ZO,PS,PM,PB表示。例如当E=40时,此时E属于PS到PM之间对应两个隶属度。E 属于PS的百分比为(50-40)/(50-25)=2/5,属于PM的百分比为(40-25)/(50-25)=3/5。同理EC也可以求出隶属度;
2、然后根据模糊规则表找出输出值对应的隶属度,假设E的两个隶属度值为PS、PM, E属于PS的隶属度为a,属于PB的隶属度为(1-a),EC的两个隶属度值为NB、NM,EC属于NM的隶属度为b,NB的隶属度为(1-b)。以Kp模糊规则表为例E属于PS的隶属度为 a,EC属于NB的隶属度为(1-b),则输出值属于PS的隶属度为a*(1-b)。同理可以得出其他三个隶属度;
3、将输出值Kp同样采用隶属度分区间的方法,假设输出值为0~100,划分8个部分7 个隶属度值。根据第二步得出的结果,用隶属度乘以相应的隶属度值算出Kp的结果,Ki、Kd 同理。最后将输出结果输入PID控制器,根据算法控制输出的加热功率。
与现有技术相比,本发明具有以下技术效果:
本发明中一种基于模糊自整定PID的温度控制的方法,在温度控制系统中,对于时变非线性系统通常会出现调节速度慢、超出或达不到设置的温度,而本发明的控制方法使整个运行过程具有快速、高效的调节效果。
最后应说明的是:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (5)

1.一种基于模糊自整定PID的温度控制的方法,其特征在于:
得到当前温度与目标温度的偏差值E,以及当前偏差值与上次偏差值的差值EC;
将偏差值E和差值EC作为模糊控制器的输入,Kp、Ki、Kd作为输出;
确认差值E和差值EC的模糊子集,并根据量化结果和模糊化处理后得到该输入子集的隶属度;
为了提高系统响应速度,根据调节初期、调节中期调节后期选取不同大小的Kp值、Ki值和Kd值,以建立模糊规则表;
根据目标温度和当前温度得到差值的大小、方向和变化趋势,通过模糊控制器作出决策,经过解模糊处理以使其与具体的物理量相对应得到PID控制器的输入参数Kp、Ki、Kd。
2.根据权利要求1所述的一种基于模糊自整定PID的温度控制的方法,其特征在于:所述偏差值E和差值EC的模糊子集均为{NB,NM,NS,ZO,PS,PM,PB},其子集分别表示为:负大、负中、负小、零、正小、正中、正大,输入范围在基本论域内,通过线性变化公式进行转化,完成输入的模糊化。
3.根据权利要求1所述的一种基于模糊自整定PID的温度控制的方法,其特征在于:所述Kp值大小的选取方式包括调节初期应适当取较大的Kp值以提高响应速度,而在调节中期,Kp则取较小值,以使系统具有较小的超调并保证一定的响应速度;而在调节过程后期再将Kp值调到较大值来减小静差,提高控制精度。
4.根据权利要求1所述的一种基于模糊自整定PID的温度控制的方法,其特征在于:所述Ki值大小的选取方式包括调节过程的初期,为防止积分饱和,其积分作用应当弱一些,Ki值甚至可以取零;而在调节中期,为了避免影响稳定性,Ki值应该比较适中;最后在过程的后期,则应增强积分作用,以减小调节静差,Ki值应该取较大。
5.根据权利要求1所述的一种基于模糊自整定PID的温度控制的方法,其特征在于:所述Kd值大小的选取方式包括在调节初期,Kd值应该应该较大以应加大微分作用,这样可得到较小甚至避免超调;而在中期,由于调节特性对Kd值的变化比较敏感,Kd值应该比较适中;然后在调节后期,Kd值应减小,以减小被控过程的制动作用,进而补偿在调节过程初期由于Kd值较大所造成的调节过程的时间延长。
CN202010159295.2A 2020-03-09 2020-03-09 一种基于模糊自整定pid的温度控制的方法 Pending CN111258213A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010159295.2A CN111258213A (zh) 2020-03-09 2020-03-09 一种基于模糊自整定pid的温度控制的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010159295.2A CN111258213A (zh) 2020-03-09 2020-03-09 一种基于模糊自整定pid的温度控制的方法

Publications (1)

Publication Number Publication Date
CN111258213A true CN111258213A (zh) 2020-06-09

Family

ID=70944203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010159295.2A Pending CN111258213A (zh) 2020-03-09 2020-03-09 一种基于模糊自整定pid的温度控制的方法

Country Status (1)

Country Link
CN (1) CN111258213A (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112180731A (zh) * 2020-10-13 2021-01-05 天津大学 能源设备运行控制方法及系统
CN112564559A (zh) * 2020-11-30 2021-03-26 苏州远科智能技术有限公司 一种基于模糊pid电流环控制的步进电机驱动器
CN115113663A (zh) * 2022-05-18 2022-09-27 东南大学 一种寒冷地区小型发电舱及温度控制方法
CN115509115A (zh) * 2022-07-14 2022-12-23 福州大学 基于模糊自适应pid控制的磁纳米粒子产热优化方法
CN117270403A (zh) * 2023-11-22 2023-12-22 四川中物技术股份有限公司 一种龙门式制坨机的优化控制方法
CN112180731B (zh) * 2020-10-13 2024-05-31 天津大学 能源设备运行控制方法及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102032640A (zh) * 2009-09-25 2011-04-27 西安西翼智能科技有限公司 工业环境高精度空调的模糊pid控制方法及装置
CN106452248A (zh) * 2016-12-12 2017-02-22 湖南工业大学 一种基于模糊pid控制的直流调速方法
CN110824908A (zh) * 2019-11-30 2020-02-21 华南理工大学 一种自调整模糊Smith-PID温度控制系统及方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102032640A (zh) * 2009-09-25 2011-04-27 西安西翼智能科技有限公司 工业环境高精度空调的模糊pid控制方法及装置
CN106452248A (zh) * 2016-12-12 2017-02-22 湖南工业大学 一种基于模糊pid控制的直流调速方法
CN110824908A (zh) * 2019-11-30 2020-02-21 华南理工大学 一种自调整模糊Smith-PID温度控制系统及方法

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112180731A (zh) * 2020-10-13 2021-01-05 天津大学 能源设备运行控制方法及系统
CN112180731B (zh) * 2020-10-13 2024-05-31 天津大学 能源设备运行控制方法及系统
CN112564559A (zh) * 2020-11-30 2021-03-26 苏州远科智能技术有限公司 一种基于模糊pid电流环控制的步进电机驱动器
CN115113663A (zh) * 2022-05-18 2022-09-27 东南大学 一种寒冷地区小型发电舱及温度控制方法
CN115509115A (zh) * 2022-07-14 2022-12-23 福州大学 基于模糊自适应pid控制的磁纳米粒子产热优化方法
CN117270403A (zh) * 2023-11-22 2023-12-22 四川中物技术股份有限公司 一种龙门式制坨机的优化控制方法
CN117270403B (zh) * 2023-11-22 2024-01-26 四川中物技术股份有限公司 一种龙门式制坨机的优化控制方法

Similar Documents

Publication Publication Date Title
CN111258213A (zh) 一种基于模糊自整定pid的温度控制的方法
Grimholt et al. Optimal PI and PID control of first-order plus delay processes and evaluation of the original and improved SIMC rules
Mudi et al. An improved auto-tuning scheme for PI controllers
Jain et al. Design of a model reference adaptive controller using modified MIT rule for a second order system
Alfaro et al. Model-reference robust tuning of 2DoF PI controllers for first-and second-order plus dead-time controlled processes
Tran et al. Generalized predictive control tuning by controller matching
Lee et al. Analytical design of multiloop PID controllers for desired closed‐loop responses
Chien et al. Simple control method for integrating processes with long deadtime
KR101849464B1 (ko) Pid 게인 자동 튜닝 방법
JP2001527231A (ja) 制御システムの応答におけるオーバーシュートの予測方法
Dey et al. A simple nonlinear PD controller for integrating processes
Daful Comparative study of PID tuning methods for processes with large & small delay times
EP2753990A1 (en) A method and a system for tuning multivariable pid controller
Cho et al. Adaptive smooth control for nonlinear uncertain systems
Devan et al. Fractional-order predictive PI controller for process plants with deadtime
Palaniyappan et al. PID control design for a temperature control system
CN109412495B (zh) 参数自调整方法、设备及计算机可读存储介质
JP2022554038A (ja) ディジタルpid制御装置の適応型チュ-ニング法
Dogruer et al. PI-PD controllers design using Bode’s ideal transfer function
Benosman Multi‐parametric extremum seeking‐based iterative feedback gains tuning for nonlinear control
JP2005284828A (ja) 制御装置、制御パラメータの調整方法、プログラムおよび記録媒体
Patel et al. Introduction to adaptive control
Silveira et al. GMV-PID controller design with gradient method for the energy weighting factor in nonlinear plants
Reyes et al. A PID using a non-singleton fuzzy logic system type 1 to control a second-order system
Aguiar et al. Comparative study of tuning techniques for fractional PID controllers for FOPDT systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200609

RJ01 Rejection of invention patent application after publication