Control parameter computation of a proportional-integral-derivative (PID) controller
10859987 ยท 2020-12-08
Assignee
Inventors
Cpc classification
International classification
Abstract
A control parameter computation method includes, by a processor, identifying, for each time segment, a plurality of mathematical models of different structures. The method also includes, computing an adaptiveness representing a level of adaptation between a time series of the computed control variable predicted values and time series data of the control variable in the paired data corresponding to the time segments different from the time segment employed in the identification. The method also includes, selecting, as a mathematical model for the paired data of the time segment. The method also includes, configuring a PID controller, generating a transfer function represented by a product of the PID controller and the selected mathematical model, and generating a function representing a gain margin of the transfer function and a function representing a phase margin of the transfer function. The method also includes computing a parameter Lambda.
Claims
1. A control parameter computation method comprising: by a processor: reading divided, paired data representing a pairing of time series data of a manipulated variable subject to control and time series data of a control variable with respect to the manipulated variable at each time for every predetermined time segment from a storage section storing the paired data for each time segment, and identifying, for each time segment, a plurality of mathematical models of different structures based on the paired data corresponding to the time segment, using a system identification method; for each time segment and the plurality of mathematical models identified for the time segment, using the mathematical models to compute predicted values of the control variable with respect to the manipulated variable in the paired data for the respective paired data corresponding to time segments different from the time segment employed in identification, and computing an adaptiveness representing a level of adaptation between a time series of the computed control variable predicted values and time series data of the control variable in the paired data corresponding to the time segments different from the time segment employed in the identification; for each time segment, selecting, as a mathematical model for the paired data of the time segment, a mathematical model for which the adaptiveness is greater than a predetermined threshold value; for each time segment, configuring a Proportional-Integral-Derivative (PID) controller based on an internal model control method and on the respective selected mathematical model, generating a transfer function represented by a product of the PID controller and the selected mathematical model, and generating a function representing a gain margin of the transfer function and a function representing a phase margin of the transfer function; and computing a parameter Lambda in the internal model control method such that the function representing the gain margin is equal to or greater than a gain margin setting threshold value and the function representing the phase margin is equal to or greater than a phase margin setting threshold value, and so as to minimize a function represented by a sum of a difference between the function representing the gain margin and the gain margin setting threshold value added to a difference between the function representing the phase margin and the phase margin setting threshold value, and then computing a control parameter in the PID controller from the parameter Lambda.
2. The control parameter computation method of claim 1, wherein based on a combination of attribute information representing an attribute when the control parameter is computed and based on the control parameter, an interpolation map is generated having the attribute information and the control parameter as axes and interpolating a distribution of values of the attribute information and values of the control parameter.
3. The control parameter computation method of claim 2, wherein the attribute information is a change width of the manipulated variable.
4. The control parameter computation method of claim 1, wherein: the parameter Lambda is set as an initial value, and a control simulation is executed on a system in which a PID controller set with the initial value and a plant model represented by the mathematical model are connected by a closed loop system structure; and the control parameter is computed by repeatedly correcting the parameter Lambda until a width of reduction in a cost evaluation value is a predetermined threshold value or less, the cost evaluation value including an error evaluation value related to an error between time series data of a target value and time series data of a control variable in results of control simulation and including a penalty evaluation value related to an amount of overshoot from the target value or an amount of undershoot from the target value in the control simulation results.
5. The control parameter computation method of claim 4, wherein the cost evaluation value further includes a change evaluation value related to a change width of the manipulated variable.
6. The control parameter computation method of claim 4, wherein each evaluation value included in the cost evaluation value is weighted by a pre-set value.
7. The control parameter computation method of claim 1, wherein when computing the parameter Lambda, the parameter Lambda is computed by repeatedly increasing the parameter Lambda until a value of the function representing the gain margin is equal to or greater than the gain margin setting threshold value, and a value of the function representing the phase margin is equal to or greater than the phase margin setting threshold value.
8. The control parameter computation method of claim 1, wherein the subject of control is a diesel engine, the manipulated variable is an injection quantity of an injector, and the control variable is an input port temperature of a diesel particle filter.
9. A non-transitory recording medium storing a control parameter computation program that is executable by a computer to perform a process, the process comprising: reading divided, paired data representing a pairing of time series data of a manipulated variable subject to control and time series data of a control variable with respect to the manipulated variable at each time for every predetermined time segment from a storage section storing the paired data for each time segment, and identifying, for each time segment, a plurality of mathematical models of different structures based on the paired data corresponding to the time segment, using a system identification method; for each time segment and the plurality of mathematical models identified for the time segment, using the mathematical models to compute predicted values of the control variable with respect to the manipulated variable in the paired data for the respective paired data corresponding to time segments different from the time segment employed in identification, and computing an adaptiveness representing a level of adaptation between a time series of the computed control variable predicted values and time series data of the control variable in the paired data corresponding to the time segments different from the time segment employed in the identification; for each time segment, selecting, as a mathematical model for the paired data of the time segment, a mathematical model for which the adaptiveness is greater than a predetermined threshold value; for each time segment, configuring a Proportional-Integral-Derivative (PID) controller based on an internal model control method and on the respective selected mathematical model, generating a transfer function represented by a product of the PID controller and the selected mathematical model, and generating a function representing a gain margin of the transfer function and a function representing a phase margin of the transfer function; and computing a parameter Lambda in the internal model control method such that the function representing the gain margin is equal to or greater than a gain margin setting threshold value and the function representing the phase margin is equal to or greater than a phase margin setting threshold value, and so as to minimize a function represented by a sum of a difference between the function representing the gain margin and the gain margin setting threshold value added to a difference between the function representing the phase margin and the phase margin setting threshold value, and then computing a control parameter in the PID controller from the parameter Lambda.
10. The non-transitory recording medium of claim 9, wherein, in the process: based on a combination of attribute information representing an attribute when the control parameter is computed and based on the control parameter, an interpolation map is generated having the attribute information and the control parameter as axes and interpolating a distribution of values of the attribute information and values of the control parameter.
11. The non-transitory recording medium of claim 10, wherein, in the process: the attribute information is a change width of the manipulated variable.
12. The non-transitory recording medium of claim 9, wherein, in the process: the parameter Lambda is set as an initial value, and a control simulation is executed on a system in which a PID controller set with the initial value and a plant model represented by the mathematical model are connected by a closed loop system structure; and the control parameter is computed by repeatedly correcting the parameter Lambda until a width of reduction in a cost evaluation value is a predetermined threshold value or less, the cost evaluation value including an error evaluation value related to an error between time series data of a target value and time series data of a control variable in results of control simulation and including a penalty evaluation value related to an amount of overshoot from the target value or an amount of undershoot from the target value in the control simulation results.
13. The non-transitory recording medium of claim 12, wherein, in the process: the cost evaluation value further includes a change evaluation value related to a change width of the manipulated variable.
14. The non-transitory recording medium of claim 12, wherein, in the process: each evaluation value included in the cost evaluation value is weighted by a pre-set value.
15. A control parameter computation device comprising: a memory; and a processor coupled to the memory, the processor being configured to: read divided, paired data representing a pairing of time series data of a manipulated variable subject to control and time series data of a control variable with respect to the manipulated variable at each time for every predetermined time segment from a storage section storing the paired data for each time segment, and identify, for each time segment, a plurality of mathematical models of different structures based on the paired data corresponding to the time segment, using a system identification method; for each time segment and the plurality of mathematical models identified for the time segments, use the mathematical models to compute predicted values of the control variable with respect to the manipulated variable in the paired data for the respective paired data corresponding to time segments different from the time segment employed in identification, and compute an adaptiveness between a time series of the computed control variable predicted values and time series data of the control variable in the paired data corresponding to the time segments different from the time segment employed in the identification; for each time segment, select, as a mathematical model for the paired data of the time segment, a mathematical model for which the adaptiveness is greater than a predetermined threshold value; for each time segment, configure a Proportional-Integral-Derivative (PID) controller based on an internal model control method and on the respective selected mathematical model, generate a transfer function represented by a product of the PID controller and the selected mathematical model, and generate a function representing a gain margin of the transfer function and a function representing a phase margin of the transfer function; compute a parameter Lambda in the internal model control method such that the function representing the gain margin is equal to or greater than a gain margin setting threshold value and the function representing the phase margin is equal to or greater than a phase margin setting threshold value, and so as to minimize a function represented by a sum of a difference between the function representing the gain margin and the gain margin setting threshold value added to a difference between the function representing the phase margin and the phase margin setting threshold value; and compute a control parameter in the PID controller based on the computed parameter Lambda.
16. The control parameter computation device of claim 15, wherein based on a combination of attribute information representing an attribute when the control parameter is computed and based on the control parameter, an interpolation map is further generated having the attribute information and the control parameter as axes and interpolating a distribution of values of the attribute information and values of the control parameter.
17. The control parameter computation device of claim 16, wherein the attribute information is a change width of the manipulated variable.
18. The control parameter computation device of claim 15, wherein: the parameter Lambda is set as an initial value, and a control simulation is executed on a system in which a PID controller set with the initial value and a plant model represented by the mathematical model are connected by a closed loop system structure; and the control parameter is computed by repeatedly correcting the parameter Lambda until a width of reduction in a cost evaluation value is a predetermined threshold value or less, the cost evaluation value including an error evaluation value related to an error between time series data of a target value and time series data of a control variable in results of control simulation and including a penalty evaluation value related to an amount of overshoot from the target value or an amount of undershoot from the target value in the control simulation results.
19. The control parameter computation device of claim 18, wherein the cost evaluation value further includes a change evaluation value related to a change width of the manipulated variable.
20. The control parameter computation device of claim 18, wherein each evaluation value included in the cost evaluation value is weighted by a pre-set value.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
DESCRIPTION OF EMBODIMENTS
(17) Detailed explanation follows regarding an example of an embodiment of technology disclosed herein, with reference to the drawings.
First Embodiment
(18) Technology to estimate control parameters of PID control include, for example, step response based methods, Internal Model Control (IMC) methods, and the like.
(19) In step response based methods, the dynamic behavior of a control variable with respect to an manipulated variable is acquired by experimentation. Moreover, in step response based methods the dynamic behavior acquired is expressed by a dynamic mathematical model such as a transfer function, equation of state, or the like. In step response based methods, the control parameters are then decided based on a steady-state gain, time constant, and dead time, which are all information related to the mathematical model.
(20) Step response based methods focus on the time response of a control system, and are empirical rules derived through experimentation. This means that sometimes overshoot, undershoot, or the like occurs, with the issue arising that re-adjustment needs to be performed by actual tests.
(21) However, in internal model control methods, a parameter Lambda is introduced as a parameter to adjust responsiveness. This means that ideal control performance can be realized in internal model control methods, without overshoot, undershoot, or the like occurring, as long as an appropriate mathematical model and parameter Lambda are employed.
(22) However, there is some degree of freedom in the way in which the mathematical model, the parameter Lambda, and the like are decided. An issue accordingly arises in that in order to estimate the control parameters to realize control that does not suffer from overshoot or undershoot while securing stability in the control system, the mathematical model and parameter Lambda need to be decided by trial and error.
(23) Thus in the present embodiment, control parameters are estimated so as to suppress overshoot or undershoot from occurring while securing stability, without performing trial and error on the mathematical model and the parameter Lambda. This enables a significant decreases in the workload needed for calibration in PID control. Specific explanation thereof follows.
(24) As illustrated in
(25) Paired data is stored in the time series data storage section 20 representing pairs of time series data of an manipulated variable subject to control and time series data of a control variable with respect to the manipulated variable at each time. The paired data is divided into predetermined time segments, and the paired data for each of the time segments is stored in the time series data storage section 20.
(26) The paired data for each of the time segments is, for example, stored in the format of a table, as illustrated in
(27) An identification ID representing identification information of the paired data for each of the time segments, time series data for times t of the time segments, time series data of the manipulated variable, time series data of the control variable, and a scalar value of the manipulated variable change quantity for this time are stored associated with each other in the table illustrated in
(28) The identification section 22 first reads the paired data for each of the time segments stored in the time series data storage section 20. The identification section 22 then employs a system identification method to identify for each of the time segments plural mathematical models of different structures based on the paired data corresponding to these time segments.
(29) Specifically, the identification section 22 identifies two or more mathematical models of different structures using a system identification method based on the paired data for one of the time segments. For example, the identification section 22 identifies mathematical models of different structures, such as a transfer function of a first order lag system+dead time as represented by Equation (1) below, a transfer function of a second order lag system+dead time as represented by Equation (2) below, and the like. In Equation (1) and Equation (2), K represents gain, T, T.sub.1, T.sub.2 represent time constants, L represents a dead time, and s represents the Laplace operator. As well as transfer functions, the mathematical models may also employ state space models (equations of state), discrete event systems, and the like.
(30) The system identification method may, for example, identify the model parameters such as the gain K, the time constants T, T.sub.1, T.sub.2, the dead time L, and the like using a prediction error method, a subspace identification method, or the like.
(31)
(32)
(33) Then for the respective plural mathematical models identified for each of the time segments by the identification section 22, the adaptiveness computation section 24 computes predicted values of the control variable with respect to the manipulated variables in the paired data by employing the respective paired data corresponding to time segments different to the time segment employed in identification. The adaptiveness computation section 24 then computes an adaptiveness representing the level of adaptation between the time series of the computed control variable predicted values, and the time series data of the control variable in the paired data corresponding to the time segments different to the time segment employed for identification.
(34) More specifically, for each of the mathematical models G.sub.p (s) for each of the time segments, the adaptiveness computation section 24 employs the manipulated variable u in the paired data not employed in the identification to compute control variable predicted values y{circumflex over ()} according to Equation (3) below for time series using the mathematical models.
=G.sub.p(s)u(s)Equation (3)
(35) The adaptiveness computation section 24 then computes an adaptiveness R.sup.2 according to Equation (4) below for the control variable predicted value time series data y{circumflex over ()}.sub.i with respect to the control variable y time series data y.sub.i of the paired data not employed for identification. The adaptiveness R.sup.2 is a coefficient of determination or a multiple correlation coefficient.
(36)
(37) In Equation (4), i is an index of the time series data, and n indicates the total number of time segments. Note that a correlation coefficient, a Root Mean Square Error (RMSE), or the like may be employed for the adaptiveness.
(38) The selection section 26 selects for each of the time segments a mathematical model for which the adaptiveness computed by the adaptiveness computation section 24 is greater than a predetermined threshold value for use as the mathematical model for the paired data of that time segment. The selection section 26 employs only a mathematical model having adaptiveness greater than the threshold value in order to eliminate mathematical models of low accuracy.
(39) More specifically, the selection section 26 employs a mathematical model for which the adaptiveness computed by the adaptiveness computation section 24 is greater than the predetermined threshold value for single paired data of the manipulated variable u and the control variable y. The selection section 26 then stores information to identify the structure of the mathematical model employed for each of the time segments and model parameters thereof in the model parameter storage section 28.
(40) The information to identify the mathematical model selected by the selection section 26 for each of the time segments and the model parameters of the mathematical model are stored in the model parameter storage section 28.
(41) The model parameters of the mathematical model selected for each of the time segments are, for example, stored in the format of a table as illustrated in
(42) The stability function builder 30 builds a stability function to compute the parameter Lambda in an internal control method. More specifically, the stability function builder 30 derives K.sub.p (), T.sub.i, and T.sub.d using the internal model control method according to the mathematical model G.sub.p (s) for each of the time segments selected by the selection section 26 stored in the model parameter storage section 28. A list of computation equations for the K.sub.p (), T.sub.i, and T.sub.d according to the mathematical model G.sub.p (s) are listed in Table 1 below.
(43) TABLE-US-00001 TABLE 1 Structure of mathematical model K.sub.p() T.sub.i T.sub.d
(44) Next, the stability function builder 30 builds a PID controller G.sub.c (s, ) according to Equation (5) below based on the K.sub.p (), T.sub.i, and T.sub.d computed according to the mathematical models G.sub.p (s) for each of the time segments.
(45)
(46) Next, the stability function builder 30 generates the transfer function L (s, ) represented by a product of the respective mathematical models G.sub.p (s) selected for each of the time segments and the PID controller G.sub.c (s, ) according to Equation (6) below.
L(s,)=G.sub.p(s)G.sub.c(s,)Equation (6)
(47) The stability function builder 30 then employs the transfer function L (s, ) to build a function g.sub.m () representing a gain margin of the transfer function L (s, ) and a function p.sub.m () representing a phase margin of the transfer function L (s, ), as represented by Equations (7) below.
g.sub.m()=20 log.sub.10|L(jw.sub.pc,)|
p.sub.m()=180+L(jw.sub.gc,)Equation (7)
(48) In Equation (7), w.sub.pc is a frequency such that for the phase of transfer function L (s, ), L (jw)=180 [deg]. In Equation (7), w.sub.gc is a frequency such that the gain of transfer function L (s, ) is | | are symbols to indicate taking an absolute value of the content.
(49) Based on the respective mathematical models stored in the model parameter storage section 28 and selected for each of the time segments, the parameter Lambda computation section 32 computes parameter Lambda , which is a parameter related to control parameters of a PID controller for each of these mathematical models. The parameter Lambda is a parameter in the internal model control method.
(50) More specifically, the parameter Lambda computation section 32 computes the parameter Lambda of the internal model control method such that the function g.sub.m () representing the gain margin is a setting threshold value Gm.sub.th for the gain margin or greater, and such that the function p.sub.m () representing the phase margin is a setting threshold value Pm.sub.th for the phase margin or greater. The parameter Lambda computation section 32 also computes the parameter Lambda according to Equation (8) so as to minimize a function expressed by a sum of a difference between the function g.sub.m () representing the gain margin and the gain margin setting threshold value Gm.sub.th added to a difference between the function p.sub.m () representing the phase margin and the phase margin setting threshold value Pm.sub.th.
(51)
(52) Note that optimization of the parameter Lambda may be executed by employing an optimization algorithm such as a golden-section search method, a steepest descent method, Newton's method, an interior-point method, or a sequential quadratic programming method, or the like. In the present embodiment, the parameter Lambda is increased gradually by predetermined increments from a value close to zero. This thereby enables a parameter Lambda .sub.opt to be found such that the function g.sub.m () representing the gain margin is the gain margin setting threshold value Gm.sub.th or greater, and such that the function p.sub.m () representing the phase margin is the phase margin setting threshold value Pm.sub.th or greater.
(53) The control parameter computation section 34 computes control parameters in the PID controller based on the parameter Lambda .sub.opt computed by the parameter Lambda computation section 32.
(54) More specifically, the control parameter computation section 34 employs the optimized parameter Lambda .sub.opt and according to Equations (9) below, computes a proportional gain K.sub.p, opt, an integral gain K.sub.i, opt, and a differential gain K.sub.d, opt, which are the control parameters in each PID controller.
(55)
(56) The control parameters in the PID controller computed by the control parameter computation section 34, which are the proportional gain K.sub.p, opt, the integral gain K.sub.i, opt, and the differential gain K.sub.d, opt, are stored in the control parameter storage section 36.
(57) The control parameters of the PID controller and the parameter Lambda are, for example, stored in the format of a table, as illustrated in
(58) The control parameters K.sub.p, opt, K.sub.i, opt, and K.sub.d, opt in the PID controller are employed to control a control system that obtained the data stored in the time series data storage section 20.
(59) The control parameter computation device 10 may, for example, be implemented by a computer 50 illustrated in
(60) The storage section 53 may be realized by a hard disk drive (HDD), a solid state drive (SSD), a flash memory, or the like. A control parameter computation program 60 for causing the computer 50 to function as the control parameter computation device 10 is stored in the storage section 53 serving as a storage medium. The control parameter computation program 60 includes an identification process 61, an adaptiveness computation process 62, a selection process 63, a stability function build process 64, a parameter Lambda computation process 65, and a control parameter computation process 66. Information configuring the time series data storage section 20 is stored in a time series data storage region 67. Information configuring the model parameter storage section 28 is stored in a model parameter storage region 68. Information configuring the control parameter storage section 36 is stored in a control parameter storage region 69.
(61) The CPU 51 reads the control parameter computation program 60 from the storage section 53 and expands the control parameter computation program 60 in the memory 52. The CPU 51 then sequentially executes the processes of the control parameter computation program 60. The CPU 51 operates as the identification section 22 illustrated in
(62) However, the functions implemented by the control parameter computation program 60 may, for example, be implemented by a semiconductor integrated circuit, or more specifically by an application specific integrated circuit (ASIC) or the like.
(63) Explanation next follows regarding operation of the control parameter computation device 10 according to the present embodiment. On receipt of an instruction signal to compute control parameters, the control parameter computation device 10 executes a control parameter computation processing routine as illustrated in
(64) At step S100, the identification section 22 first reads paired data for each of the time segments stored in the time series data storage section 20. At step S100, the identification section 22 identifies for each of the time segments plural mathematical models of different structures using a system identification method based on the paired data corresponding to that time segment.
(65) At step S102, for each of the plural mathematical models identified for each of the time segments at step S100, the adaptiveness computation section 24 computes, according to Equation (3), control variable predicted values time series data y{circumflex over ()}.sub.i using the manipulated variables u of the respective paired data not employed in the identification. Then at step S102, the adaptiveness computation section 24 computes, according to Equation (4), the adaptiveness R.sup.2 for the control variable predicted values time series data y{circumflex over ()}.sub.i against the control variable y time series data y.sub.i of the paired data not employed in the identification.
(66) At step S104, the selection section 26 selects for each of the time segments a mathematical model for which the adaptiveness computed at step S102 is greater than a predetermined threshold value as the mathematical model for the paired data of that time segment. Then at step S104, the selection section 26 stores the model parameters of the mathematical models for each of the time segments in the model parameter storage section 28.
(67) At step S106, the stability function builder 30 derives K.sub.p (), T.sub.i, and T.sub.d using the internal model control method according to the model parameters of the mathematical models G.sub.p (s) for each of the time segments stored in the model parameter storage section 28 at step S104.
(68) Then at step S106, the stability function builder 30 builds the PID controller G.sub.c (s, ) according to Equation (5) based on the K.sub.p (), T.sub.i, and T.sub.d computed according to the mathematical models G.sub.p (s) for each of the time segments.
(69) Moreover, at step S106, the stability function builder 30 generates, according to Equation (6), the transfer function L (s, ) represented by the product of the respective mathematical model G.sub.p (s) selected for each of the time segments multiplied by the PID controller G.sub.c (s, ).
(70) Then at step S106, the stability function builder 30 builds the function g.sub.m () representing the gain margin of the transfer function L (s, ) and the function p.sub.m () representing the phase margin of the transfer function L (s, ) as indicated in Equations (7).
(71) At step S108, the parameter Lambda computation section 32 computes the parameter Lambda .sub.opt according to Equation (8) by gradually increasing the parameter Lambda in predetermined increments from a value close to zero.
(72) At step S110, the control parameter computation section 34 employs the parameter Lambda .sub.opt computed at step S108 to compute the control parameters, which are the proportional gain K.sub.p, opt, the integral gain K.sub.i, opt, and the differential gain K.sub.d, opt, according to Equation (9). The control parameter computation section 34 then stores the proportional gain K.sub.p, opt, the integral gain K.sub.i, opt, and the differential gain K.sub.d, opt in the control parameter storage section 36 and ends processing.
(73) As explained above, the control parameter computation device according to the present embodiment identifies for each of the time segments plural mathematical models of different structures using a system identification method based on the paired data corresponding to all of the time segments. Moreover, for each of the time segments and for each of the plural mathematical models identified for the respective time segments, the control parameter computation device uses the mathematical model to compute control variable predicted values with respect to the manipulated variables of the paired data for respective paired data corresponding to the time segments not employed in the identification. The control parameter computation device then computes the adaptiveness between the time series of the control variable predicted values, and the time series data for the control variable in the paired data corresponding to the time segments different to the time segment employed in the identification. The control parameter computation device then selects for each of the time segments a mathematical model for which adaptiveness is greater than a predetermined threshold value as the mathematical model for the paired data of that time segment. The control parameter computation device then computes the parameter Lambda for the control parameters of the PID controller for the mathematical model based on the respective mathematical model selected for each of the time segments. The control parameter computation device then computes the control parameters in the PID controller based on the computed parameter Lambda. This accordingly enables the control parameters in the PID control to be efficiently estimated.
(74) The control parameters for PID control can moreover be acquired without using trial and error when deciding on plural mathematical models of different structures. Moreover, by optimizing the parameter Lambda in the internal model control method in consideration of the gain margin and the phase margin, the control parameters for PID control can be acquired without using trial and error, and while securing stability of the control system. This accordingly enables the workload for calibration to be reduced.
Second Embodiment
(75) Next, explanation follows regarding a second embodiment. The second embodiment differs from the first embodiment in the point that an interpolation map of control parameters for PID control is further produced. The same reference numerals are appended to portions configured similarly to the first embodiment and explanation thereof will be omitted.
(76) As illustrated in
(77) When computing the control parameters, the control parameter computation section 234 further acquires attribute information representing attributes when the control parameters are computed. The control parameter computation section 234 stores the attribute information and the control parameters in the control parameter storage section 236. Details regarding the attribute information are described below.
(78) The attribute information and the control parameters are stored in the control parameter storage section 236. The attribute information and the control parameters are, for example, stored in the format of a table, as illustrated in
(79) Based on a combination of the attribute information and the control parameters stored in the control parameter storage section 236, the interpolation map generator 238 generates the interpolation map having attribute information and control parameters as axes, and interpolating a distribution of values of the attribute information and values of the control parameters.
(80)
(81) Note that the attribute information may be any information as long as it is information obtainable when computing the control parameters. For example, by employing, as the attribute information, information about a change width of steps in the manipulated variable when the manipulated variable is dynamically changed stepwise (in steps), values of the control parameters can be referenced at higher precision.
(82) The control parameter computation device 210 may, for example, be realized by a computer 250 as illustrated in
(83) A CPU 51 reads the control parameter computation program 260 from the storage section 53 and expands the control parameter computation program 260 in the memory 52. The CPU 51 then sequentially executes the processes of the control parameter computation program 260. The CPU 51 operates as the control parameter computation section 234 illustrated in
(84) Next, explanation follows regarding operation of the control parameter computation device 210 according to the present embodiment. On receipt of an instruction signal to compute control parameters, the control parameter computation device 210 executes a control parameter computation processing routine illustrated in
(85) At step S210, when computing the control parameters the control parameter computation section 234 further acquires attribute information representing attributes when the control parameters are computed. The control parameter computation section 234 then stores the attribute information and the control parameters in the control parameter storage section 236.
(86) Based on a combination of the attribute information and the control parameters stored in the control parameter storage section 236 at step S210, the interpolation map generator 238 generates at step S212 the interpolation map interpolating a distribution of values of the attribute information and values of the control parameters.
(87) As explained above, based on a combination of the attribute information and the control parameters, the control parameter computation device according to the second embodiment generates the interpolation map having the attribute information and the control parameters as axes and interpolating a distribution between values of the attribute information and values of the control parameters. This thereby enables control parameters to be referenced that are different to the directly computed control parameters.
Third Embodiment
(88) Next, explanation follows regarding a third embodiment. The third embodiment differs from the first and the second embodiments in the point that, in control simulation, the control parameters are computed by repeatedly correcting the control parameters in consideration of an amount of overshoot from a target value or an amount of undershoot from a target value. The same reference numerals are appended to portions of configuration similar to that of the first and the second embodiments and explanation thereof will be omitted.
(89) As illustrated in
(90) The simulation section 340 sets a parameter Lambda stored in the control parameter storage section 36 as an initial value. The simulation section 340 then executes control simulation on a system in which a PID controller set with the initial value and a plant model represented by a mathematical model are connected in a closed loop system structure.
(91) The cost function computation section 342 computes a predetermined cost evaluation based on the results of control simulation obtained by the simulation section 340.
(92) A cost evaluation value J in the present embodiment includes an error evaluation value related to error between target value time series data and control variable time series data, a change evaluation value related to a change width in manipulated variable, and a penalty evaluation value related to an amount of overshoot from the target value or an amount of undershoot from the target value.
(93) More specifically, the cost evaluation value J is represented by Equation (10) below.
(94)
(95) As indicated by Equation (10), the cost evaluation value J includes an error evaluation value related to error between time series of a target value r.sub.trg and of a control variable y.sub.sim in the control simulation results. The cost evaluation value J also includes a penalty evaluation value of an amount y.sub.sim, over of overshoot or undershoot from the target value in the control simulation results. The cost evaluation value J also includes a change evaluation value related to the width of change in the manipulated variable. The respective evaluation values are weighted by weighting coefficients Q.sub.err, R, Q.sub.over. In Equation (10), t.sub.n is an end time of the control simulation, and to is a start time of the control simulation. u is a time change width of the manipulated variable.
(96) The control parameter computation section 334 then computes the parameter Lambda by correcting the parameter Lambda until the gain margin setting threshold value Gm.sub.th and the phase margin setting threshold value Pm.sub.th are satisfied, and the width of reduction in cost evaluation value J is a predetermined threshold value or lower. The control parameter computation section 334 then computes the control parameters from the parameter Lambda.
(97) The control parameter computation device 310 may, for example, be realized by a computer 350 illustrated in
(98) A CPU 51 reads the control parameter computation program 360 from the storage section 53 and expands the control parameter computation program 360 in the memory 52. The CPU 51 then sequentially executes the processes of the control parameter computation program 360. The CPU 51 operates as the control parameter computation section 334 illustrated in
(99) Next, explanation follows regarding operation of the control parameter computation device 310 according to the present embodiment. On receipt of an instruction signal to compute control parameters, the control parameter computation device 310 executes a control parameter computation processing routine illustrated in
(100) At step S312, the simulation section 340 sets the control parameter computed at step S110 as an initial value when the repeated processing is being performed for the first time. The simulation section 340 then executes a control simulation on a system in which a PID controller set with the initial value and a plant model represented by a mathematical model are connected in a closed loop system structure. Moreover, the control simulation is executed based on the control parameter updated at step S320 when the repeated processing is not being performed for the first time.
(101) At step S314, the cost function computation section 342 computes the cost evaluation value J according to Equation (10) based on the control simulation results obtained at step S312.
(102) At step S316, the cost function computation section 342 determines whether or not a reduction in width between the cost evaluation value J computed at step S314 this time and the cost evaluation value J computed at step S314 the previous time is a threshold value or smaller. The processing is ended when the reduction in width between the cost evaluation value J computed at step S314 this time and the cost evaluation value J computed at step S314 the previous time is the threshold value or smaller. However, the processing transitions to step S318 when the reduction in width between the cost evaluation value J computed at step S314 this time and the cost evaluation value J computed at step S314 the previous time is larger than the threshold value.
(103) At step S318, the parameter Lambda computation section 32 updates the parameter Lambda so that the value of the function g.sub.m () representing the gain margin is the gain margin setting threshold value Gina, or greater, and so that the value of the function p.sub.m () representing the phase margin is the phase margin setting threshold value Pm.sub.th or greater.
(104) At step S320, the control parameter computation section 334 updates the control parameters based on the parameter Lambda updated at step S318.
(105) As explained above, the control parameter computation device according to the third embodiment executes control simulation on a system in which the PID controller set with initial values for the control parameters and the plant model represented by the mathematical model are connected in a closed loop system structure. The control parameter computation device then computes the control parameters by repeatedly correcting the control parameters until the reduction in width of the cost evaluation value is the predetermined threshold value or less. This thereby enables control parameters to be acquired for implementing PID control in which overshoot or undershoot has been suppressed from occurring.
Example 1
(106) Next, explanation follows regarding an Example of the control parameter computation device according to the present embodiment. The target for control in the present Example is an engine injection system for an automotive engine, and control results are compared for a control variable of a common rail pressure and an manipulated variable of a suction valve flow rate.
(107) In conventional methods, a transfer function of a first order lag system is identified from time series data of an manipulated variable and a control variable, and control parameters for PID control are computed from information of steady-state gain, time constants, and dead time of the transfer function using a CHR method.
(108) Results of a comparison between control results using control parameters in PID control in a control parameter computation device according to the present embodiment and in a conventional method are illustrated in
(109) The overshoot is smaller and the rise is also earlier in the control parameter computation device according to the present embodiment than in the conventional method, confirming that high control performance was achieved. In the conventional method, work is needed to adjust the control parameters using trial and error in order to achieve performance at the same level as that in the control parameter computation device according to the present embodiment, resulting in a significant increase in workload.
(110) Note that although an embodiment has been explained in which each of the programs is stored in advance (pre-installed) in a storage section there is no limitation thereto. The programs according to the technology disclosed herein may be provided in a form recorded on a recording medium, such as a CD-ROM, DVD-ROM, USB memory, or the like.
(111) All publications, patent applications and technical standards mentioned in the present specification are incorporated by reference in the present specification to the same extent as if each individual publication, patent application, or technical standard was specifically and individually indicated to be incorporated by reference.
(112) Next, explanation follows regarding modified examples of the embodiments.
(113) Although the control parameter computation devices in the above embodiments have been explained by way of examples in which the parameter Lambda in the internal control method is computed as an example of a parameter related to control parameters in PID control, there is no limitation thereto. For example, in place of the parameter Lambda in the internal control method, a predetermined coefficient may be computed as a parameter related to control parameters. For example, a predetermined coefficient may be set as in the equations below, so as to compute the coefficient .
(114) TABLE-US-00002 TABLE 2 Structure of mathematical model K.sub.p ()
(115) The control parameter computation devices of the above embodiments are applicable to various applications. For example, examples of applications for the control parameter computation devices of the above embodiments include diesel engines subject to control, wherein the manipulated variable is an injection quantity of an injector, and the control variable is an input port temperature of a diesel particle filter.
(116) When control parameters for Proportional-Integral-Differential (PID) control are derived, there is, for example, some degree of freedom in the method employed in an internal model control method to decide on a mathematical model and parameter Lambda. The mathematical model and parameter Lambda accordingly need to be decided by trial and error, with an issue arising regarding the workload for such work.
(117) An aspect of the technology disclosed herein enables control parameters in PID control to be efficiently estimated.
(118) All examples and conditional language provided herein are intended for the pedagogical purposes of aiding the reader in understanding the invention and the concepts contributed by the inventor to further the art, and are not to be construed as limitations to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although one or more embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.