Summary of the invention
Embodiments provide a kind of control method of air-conditioner frequency, can the object of rapid adjustment indoor temperature to reach, the method comprises:
According to the mode of operation of air-conditioner, determine N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively, N be more than or equal to 2 integer;
According to described N number of temperature gap, set up the change function of described air-conditioner frequency, described change function comprises proportionality coefficient, integral coefficient and differential coefficient;
According to inner ring temperature and the outer shroud temperature of described air-conditioner, determine the numerical value of described proportionality coefficient, integral coefficient and differential coefficient;
According to the numerical value of described proportionality coefficient, integral coefficient and differential coefficient, determine the changing value of described air-conditioner frequency.
In one embodiment, according to the mode of operation of air-conditioner, determine that N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively specifically comprises: when the mode of operation of air-conditioner is refrigeration mode, determine N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively according to the following equation:
ΔT[i]=T[i]-T
set
When the mode of operation of air-conditioner is heating mode, determine N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively according to the following equation:
ΔT[i]=T
set-T[i]
Wherein, Δ T [i] represents the temperature gap that described in i-th sampling instant, air-conditioner is corresponding, and T [i] represents the inner ring temperature that described in i-th sampling instant, air-conditioner is corresponding, T
setrepresent the temperature of described air-conditioner setting.
In one embodiment, according to the following equation according to described N number of temperature gap, set up the change function of described air-conditioner frequency:
Wherein, Δ F [i] represents the change function of air-conditioner frequency described in i-th sampling instant, T
orepresent the sampling period, K
prepresent described proportionality coefficient, K
irepresent described integral coefficient, K
drepresent described differential coefficient.
In one embodiment, the described inner ring temperature according to described air-conditioner and outer shroud temperature, determine that the numerical value of described proportionality coefficient, integral coefficient and differential coefficient specifically comprises: between the marker space dividing inner ring temperature in advance and between the marker space of outer shroud temperature; Between the first marker space residing for inner ring temperature determining described air-conditioner and between second marker space residing for outer shroud temperature of described air-conditioner; The numerical value of proportionality coefficient in described change function is defined as by with scaling factor v simultaneously corresponding between described first marker space and between described second marker space; The numerical value of integral coefficient in described change function is defined as by with integral coefficient numerical value simultaneously corresponding between described first marker space and between described second marker space; The numerical value of differential coefficient in described change function is defined as by with differential coefficient numerical value simultaneously corresponding between described first marker space and between described second marker space.
In one embodiment, the described numerical value according to described proportionality coefficient, integral coefficient and differential coefficient, determines that the changing value of described air-conditioner frequency specifically comprises: the number determining sampling instant to be calculated; According to the numerical value of described proportionality coefficient, integral coefficient and differential coefficient, determine the changing value of described air-conditioner frequency according to the following equation:
Wherein, Δ F [i] represents the changing value of air-conditioner frequency described in i-th sampling instant, K
p[m, n] represents the numerical value of described proportionality coefficient, K
i[m, n] represents the numerical value of described integral coefficient, K
d[m, n] represents the numerical value of described differential coefficient, T
orepresent the sampling period, Δ T [i] represents the temperature gap that described in i-th sampling instant, air-conditioner is corresponding, and M represents the number of the sampling instant described to be calculated determined, M be greater than or equal to 1 integer.
The embodiment of the present invention additionally provides a kind of control device of air-conditioner frequency, can the object of rapid adjustment indoor temperature to reach, and this device comprises:
Temperature gap determining unit, for the mode of operation according to air-conditioner, determine N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively, N be more than or equal to 2 integer;
Change of frequency function sets up unit, and for according to described N number of temperature gap, set up the change function of described air-conditioner frequency, described change function comprises proportionality coefficient, integral coefficient and differential coefficient;
Factor v determining unit, for according to the inner ring temperature of described air-conditioner and outer shroud temperature, determines the numerical value of described proportionality coefficient, integral coefficient and differential coefficient;
Frequency change determining unit, for the numerical value according to described proportionality coefficient, integral coefficient and differential coefficient, determines the changing value of described air-conditioner frequency.
In one embodiment, described temperature gap determining unit specifically comprises: the first determination module, for when the mode of operation of air-conditioner is refrigeration mode, determines N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively according to the following equation:
ΔT[i]=T[i]-T
set
Second determination module, for when the mode of operation of air-conditioner is heating mode, determine N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively according to the following equation:
ΔT[i]=T
set-T[i]
Wherein, Δ T [i] represents the temperature gap that described in i-th sampling instant, air-conditioner is corresponding, and T [i] represents the inner ring temperature that described in i-th sampling instant, air-conditioner is corresponding, T
setrepresent the temperature of described air-conditioner setting.
In one embodiment, described change of frequency function is set up unit and is specifically comprised: formula sets up module, for according to the following equation according to described N number of temperature gap, sets up the change function of described air-conditioner frequency:
Wherein, Δ F [i] represents the change function of air-conditioner frequency described in i-th sampling instant, T
orepresent the sampling period, K
prepresent described proportionality coefficient, K
irepresent described integral coefficient, K
drepresent described differential coefficient.
In one embodiment, described factor v determining unit specifically comprises: separate interval division module, for divide inner ring temperature in advance marker space between and outer shroud temperature marker space between; Separate interval determination module, for determine described air-conditioner inner ring temperature residing for the first marker space between and described air-conditioner outer shroud temperature residing for the second marker space between; Scaling factor v determination module, for being defined as the numerical value of proportionality coefficient in described change function by with scaling factor v simultaneously corresponding between described first marker space and between described second marker space; Integral coefficient numerical value determination module, for being defined as the numerical value of integral coefficient in described change function by with integral coefficient numerical value simultaneously corresponding between described first marker space and between described second marker space; Differential coefficient numerical value determination module, for being defined as the numerical value of differential coefficient in described change function by with differential coefficient numerical value simultaneously corresponding between described first marker space and between described second marker space.
In one embodiment, described frequency change determining unit specifically comprises: sampling instant number determination module, for determining the number of sampling instant to be calculated; Computing module, for the numerical value according to described proportionality coefficient, integral coefficient and differential coefficient, determine the changing value of described air-conditioner frequency according to the following equation:
Wherein, Δ F [i] represents the changing value of air-conditioner frequency described in i-th sampling instant, K
p[m, n] represents the numerical value of described proportionality coefficient, K
i[m, n] represents the numerical value of described integral coefficient, K
d[m, n] represents the numerical value of described differential coefficient, T
orepresent the sampling period, Δ T [i] represents the temperature gap that described in i-th sampling instant, air-conditioner is corresponding, and M represents the number of the sampling instant described to be calculated determined, M be greater than or equal to 1 integer.
According to control method and the device of a kind of air-conditioner frequency of the present invention, by fuzzy arithmetic is combined with PID control method, PID control method is utilized to construct the function of air-conditioner change of frequency, and then obtained the numerical value of proportionality coefficient, integral coefficient and differential coefficient in the function of air-conditioner change of frequency by fuzzy arithmetic, thus the changing value of air-conditioner frequency can be determined.The control method of a kind of air-conditioner frequency provided by the invention and device, not only fast than fuzzy arithmetic operation method of the prior art, and also the scope of application is wider, and temperature controlled precision is also higher.
Detailed description of the invention
Technical scheme in the application is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making other embodiments all obtained under creative work prerequisite, all should belong to the scope of the application's protection.
The method flow diagram of a kind of air-conditioner FREQUENCY CONTROL that Fig. 1 provides for the embodiment of the present application.Although hereafter describe flow process to comprise the multiple operations occurred with particular order, but should have a clear understanding of, these processes can comprise more or less operation, and these operations can sequentially perform or executed in parallel (such as using parallel processor or multi-thread environment).As shown in Figure 1, the control method of described air-conditioner frequency can comprise:
S1: according to the mode of operation of air-conditioner, determine N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively, N be more than or equal to 2 integer.
In the embodiment of the present application, according to the default sampling period, can sample to the real time temperature of air-conditioner, each sampling all may correspond to a sampling instant.In the embodiment of the present application, the number of described sampling instant can be represented with N, N be greater than or equal to 2 integer.Interval between every two sampling instants just can be the described default sampling period.
The embodiment of the present application can adopt the temperature of the mode of feedback to air-conditioner to control.That is, the embodiment of the present application can calculate the temperature gap between each sampling instant real time temperature and preset temperature, and adjusts real time temperature based on this temperature gap, to make real time temperature close to preset temperature.
Due to the change along with working mode of air-conditioner, the mode calculating temperature gap in the embodiment of the present application also can change thereupon, therefore preferentially can determine the mode of operation of air-conditioner in the embodiment of the present application.Particularly, described mode of operation can be divided into two classes that heat and freeze.When the mode of operation of air-conditioner is refrigeration mode, N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively can be determined according to the following equation:
ΔT[i]=T[i]-T
set
When the mode of operation of air-conditioner is heating mode, determine N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively according to the following equation:
ΔT[i]=T
set-T[i]
Wherein, Δ T [i] represents the temperature gap that described in i-th sampling instant, air-conditioner is corresponding, and T [i] represents the inner ring temperature that described in i-th sampling instant, air-conditioner is corresponding, T
setrepresent the temperature of described air-conditioner setting.
S2: according to described N number of temperature gap, sets up the change function of described air-conditioner frequency, and described change function comprises proportionality coefficient, integral coefficient and differential coefficient.
In the embodiment of the present application, based on pid control algorithm, according to the N number of temperature gap determined in step S1, the change function of described air-conditioner frequency can be set up.Pid control algorithm is the control algolithm of a closed loop, and the temperature gap of feedback can be utilized to regulate real time temperature.Proportionality coefficient, integral coefficient and differential coefficient is often there is in described pid control algorithm, wherein, described proportionality coefficient can reaction temperature regulate current deviation, described proportionality coefficient is larger, the speed regulated is faster, but larger proportionality coefficient often causes the stability regulating flow process to decline; Described integral coefficient can reaction temperature regulate cumulative departure, make adjustment process eliminate steady-state error; Described differential coefficient can reflect thermoregulator instantaneous variation, the trend of change of error can be predicted, thus can correct in time before deviation is not also formed, but described differential coefficient often has amplification to noise jamming, therefore can reduce the interference free performance regulating flow process.The embodiment of the present application is jointly controlled by described proportionality coefficient, integral coefficient and differential coefficient, thus can accelerate thermoregulator course of reaction, reduces the time needed for temperature adjustment.
The embodiment of the present application according to the following equation according to described N number of temperature gap, can set up the change function of described air-conditioner frequency:
Wherein, Δ F [i] represents the change function of air-conditioner frequency described in i-th sampling instant, T
orepresent the sampling period, K
prepresent described proportionality coefficient, K
irepresent described integral coefficient, K
drepresent described differential coefficient.
In traditional pid control algorithm, due to the determination more complicated of proportionality coefficient, integral coefficient and differential coefficient, the applicability of therefore traditional pid control algorithm is lower.And proportionality coefficient, integral coefficient and the differential coefficient in the change function of the air-conditioner frequency that the embodiment of the present application is set up can be determined by fuzzy algorithmic approach, thus strengthen the applicability of this technical scheme.The concrete numerical value how being determined described proportionality coefficient, integral coefficient and differential coefficient by fuzzy algorithmic approach will be described below.
S3: according to inner ring temperature and the outer shroud temperature of described air-conditioner, determine the numerical value of described proportionality coefficient, integral coefficient and differential coefficient.
In the embodiment of the present application, along with the carrying out of FREQUENCY CONTROL flow process, the inner ring temperature of described air-conditioner and outer shroud temperature are also in continuous change, the embodiment of the present application based on the current inner ring temperature of described air-conditioner and outer shroud temperature, can determine the numerical value of described proportionality coefficient, integral coefficient and differential coefficient.Particularly, the embodiment of the present application can divide inner ring temperature in advance marker space between and outer shroud temperature marker space between.Such as, can be divided between the marker space of inner ring temperature: (-∞, T
in1], (T
in1, T
in2] ..., (T
in (k-1),+∞), similarly, can be divided between the marker space of outer shroud temperature: (-∞, T
out1], (T
out1, T
out2] ..., (T
out (k-1),+∞), can represent as was the case with table 1 particularly:
Between the marker space of table 1 inner ring temperature and outer shroud temperature
|
(-∞,T
in1]
|
(T
in1,T
in2]
|
… |
(T
in(k-1),+∞)
|
(-∞,T
out1]
|
K
P/K
I/K
D[1,1]
|
K
P/K
I/K
D[2,1]
|
… |
K
P/K
I/K
D[k,1]
|
(T
out1,T
out2]
|
K
P/K
I/K
D[1,2]
|
K
P/K
I/K
D[2,2]
|
… |
K
P/K
I/K
D[k,2]
|
… |
… |
… |
… |
… |
(T
out(k-1),+∞)
|
K
P/K
I/K
D[1,k-1]
|
K
P/K
I/K
D[2,k-1]
|
… |
K
P/K
I/K
D[k,k]
|
As shown in table 1, the inner ring temperature after demarcation interval and outer shroud temperature lay respectively at the first row and the first row of table 1, meanwhile, all correspond to the numerical value of one group of proportionality coefficient, integral coefficient and differential coefficient with each inner ring temperature range and outer shroud temperature range.Such as, proportionality coefficient, integral coefficient and differential coefficient numerical value in the second row secondary series of table 1 can be expressed as K
p[1,1], K
i[1,1] and K
d[1,1], in like manner, the proportionality coefficient of the third line secondary series of table 1, integral coefficient and differential coefficient numerical value can be expressed as K
p[1,2], K
i[1,2] and K
d[1,2].
Like this, the embodiment of the present application can according to the inner ring temperature of current air-conditioner and outer shroud temperature respectively residing for the first marker space between and between the second marker space, the numerical value of proportionality coefficient in described change function is defined as by with scaling factor v simultaneously corresponding between described first marker space and between described second marker space, simultaneously, to the numerical value of integral coefficient in described change function be defined as with integral coefficient numerical value simultaneously corresponding between described first marker space and between described second marker space and differential coefficient numerical value simultaneously corresponding between described first marker space and between described second marker space be defined as the numerical value of differential coefficient in described change function.Such as, be (T between first marker space residing for inner ring temperature of current air-conditioner
in1, T
in2], be (-∞, T between the second marker space residing for outer shroud temperature
out1], scaling factor v simultaneously corresponding between so described first marker space and between described second marker space is K
p[2,1], integral coefficient numerical value is K
i[2,1], differential coefficient numerical value is K
d[2,1], so just can determine the scaling factor v in the change function of described air-conditioner frequency, integral coefficient numerical value and differential coefficient numerical value.
S4: according to the numerical value of described proportionality coefficient, integral coefficient and differential coefficient, determines the changing value of described air-conditioner frequency.
After the numerical value determining described proportionality coefficient, integral coefficient and differential coefficient, just according to the change of frequency function set up in step S2, the changing value of described air-conditioner frequency can be determined.Particularly, owing to relating to integration summation operation in described change of frequency function, therefore the embodiment of the present application can determine the number of sampling instant to be calculated, and such as this number can be 6, and so described integration summation operation just can be sued for peace 6 times.Particularly, the embodiment of the present application according to the numerical value of described proportionality coefficient, integral coefficient and differential coefficient, can determine the changing value of described air-conditioner frequency according to the following equation:
Wherein, Δ F [i] represents the changing value of air-conditioner frequency described in i-th sampling instant, K
p[m, n] represents the numerical value of described proportionality coefficient, K
i[m, n] represents the numerical value of described integral coefficient, K
d[m, n] represents the numerical value of described differential coefficient, T
orepresent the sampling period, Δ T [i] represents the temperature gap that described in i-th sampling instant, air-conditioner is corresponding, and M represents the number of the sampling instant described to be calculated determined, M be greater than or equal to 1 integer.
Like this, just can determine the changing value of certain sampling instant frequency, thus according to the changing value of this frequency, the control to temperature can be converted into, with make real time temperature level off to setting temperature.
As can be seen from the above description, the above embodiments of the present invention achieve following technique effect:
By fuzzy arithmetic is combined with PID control method, PID control method is utilized to construct the function of air-conditioner change of frequency, and then obtained the numerical value of proportionality coefficient, integral coefficient and differential coefficient in the function of air-conditioner change of frequency by fuzzy arithmetic, thus the changing value of air-conditioner frequency can be determined.The control method of a kind of air-conditioner frequency provided by the invention and device, not only fast than fuzzy arithmetic operation method of the prior art, and also the scope of application is wider, and temperature controlled precision is also higher.
The embodiment of the present application also provides a kind of control device of air-conditioner frequency.The apparatus function module map of a kind of air-conditioner FREQUENCY CONTROL that Fig. 2 provides for the embodiment of the present application.As shown in Figure 2, the control device of described air-conditioner frequency comprises:
Temperature gap determining unit 100, for the mode of operation according to air-conditioner, determine N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively, N be more than or equal to 2 integer;
Change of frequency function sets up unit 200, and for according to described N number of temperature gap, set up the change function of described air-conditioner frequency, described change function comprises proportionality coefficient, integral coefficient and differential coefficient;
Factor v determining unit 300, for according to the inner ring temperature of described air-conditioner and outer shroud temperature, determines the numerical value of described proportionality coefficient, integral coefficient and differential coefficient;
Frequency change determining unit 400, for the numerical value according to described proportionality coefficient, integral coefficient and differential coefficient, determines the changing value of described air-conditioner frequency.
In the application one preferred embodiment, described temperature gap determining unit 100 specifically comprises:
First determination module, for when the mode of operation of air-conditioner is refrigeration mode, determine N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively according to the following equation:
ΔT[i]=T[i]-T
set
Second determination module, for when the mode of operation of air-conditioner is heating mode, determine N number of temperature gap that air-conditioner described in N number of sampling instant is corresponding respectively according to the following equation:
ΔT[i]=T
set-T[i]
Wherein, Δ T [i] represents the temperature gap that described in i-th sampling instant, air-conditioner is corresponding, and T [i] represents the inner ring temperature that described in i-th sampling instant, air-conditioner is corresponding, T
setrepresent the temperature of described air-conditioner setting.
In another preferred embodiment of the application, described change of frequency function is set up unit 200 and is specifically comprised:
Formula sets up module, for according to the following equation according to described N number of temperature gap, sets up the change function of described air-conditioner frequency:
Wherein, Δ F [i] represents the change function of air-conditioner frequency described in i-th sampling instant, T
orepresent the sampling period, K
prepresent described proportionality coefficient, K
irepresent described integral coefficient, K
drepresent described differential coefficient.
In another preferred embodiment of the application, described factor v determining unit 300 specifically comprises:
Separate interval division module, for divide inner ring temperature in advance marker space between and outer shroud temperature marker space between;
Separate interval determination module, for determine described air-conditioner inner ring temperature residing for the first marker space between and described air-conditioner outer shroud temperature residing for the second marker space between;
Scaling factor v determination module, for being defined as the numerical value of proportionality coefficient in described change function by with scaling factor v simultaneously corresponding between described first marker space and between described second marker space;
Integral coefficient numerical value determination module, for being defined as the numerical value of integral coefficient in described change function by with integral coefficient numerical value simultaneously corresponding between described first marker space and between described second marker space;
Differential coefficient numerical value determination module, for being defined as the numerical value of differential coefficient in described change function by with differential coefficient numerical value simultaneously corresponding between described first marker space and between described second marker space.
In another preferred embodiment of the application, described frequency change determining unit 400 specifically comprises:
Sampling instant number determination module, for determining the number of sampling instant to be calculated;
Computing module, for the numerical value according to described proportionality coefficient, integral coefficient and differential coefficient, determine the changing value of described air-conditioner frequency according to the following equation:
Wherein, Δ F [i] represents the changing value of air-conditioner frequency described in i-th sampling instant, K
p[m, n] represents the numerical value of described proportionality coefficient, K
i[m, n] represents the numerical value of described integral coefficient, K
d[m, n] represents the numerical value of described differential coefficient, T
orepresent the sampling period, Δ T [i] represents the temperature gap that described in i-th sampling instant, air-conditioner is corresponding, and M represents the number of the sampling instant described to be calculated determined, M be greater than or equal to 1 integer.
Similar in the implementation procedure of each functional module above-mentioned and step S1 to S4, just repeat no more here.
From above description, can find out, the embodiment of the present invention achieves following technique effect: by being combined with PID control method by fuzzy arithmetic, PID control method is utilized to construct the function of air-conditioner change of frequency, and then obtained the numerical value of proportionality coefficient, integral coefficient and differential coefficient in the function of air-conditioner change of frequency by fuzzy arithmetic, thus the changing value of air-conditioner frequency can be determined.The control method of a kind of air-conditioner frequency provided by the invention and device, not only fast than fuzzy arithmetic operation method of the prior art, and also the scope of application is wider, and temperature controlled precision is also higher.
Obviously, those skilled in the art should be understood that, each module of the above-mentioned embodiment of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, and in some cases, step shown or described by can performing with the order be different from herein, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the embodiment of the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the embodiment of the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.