Engine air-fuel ratio control

Information

  • Patent Grant
  • 6619277
  • Patent Number
    6,619,277
  • Date Filed
    Friday, June 14, 2002
    22 years ago
  • Date Issued
    Tuesday, September 16, 2003
    20 years ago
Abstract
A state quantity σ(n) of a switching function is calculated based on a predetermined target air-fuel ratio TGABF, a detected air-fuel ratio AFSAF detected by a sensor (16), and a state equation derived from a transfer function Geng(q) of a secondary discrete system, representing the correlation between an air-fuel ratio of an air fuel mixture in a combustion chamber (1A) and the detected air-fuel ratio (S14). The air-fuel ratio is feedback corrected by applying a sliding mode control process based on the difference between the target air-fuel ratio TGABF and the detected air-fuel ratio AFSAF, and the state quantity σ(n) (S14-S21). The response and robustness of the air-fuel ratio control are enhanced by using a physical model of the secondary discrete system.
Description




FIELD OF THE INVENTION




This invention relates to application of a sliding mode control process to an engine air-fuel ratio control.




BACKGROUND OF THE INVENTION




U.S. Pat. No. 6,266,605 discloses an application of a sliding mode control process to the feedback control of the air-fuel ratio of an air-fuel mixture supplied to an internal combustion engine.




In this prior art technique, the engine as a controlled plant is represented by a continuous physical model and a state equation is obtained from the physical model. Specifically, according to this prior art, a state equation of a continuous model is first obtained from the physical model and this equation is then converted into a state equation of a discrete system.




SUMMARY OF THE INVENTION




However, in the process of obtaining the discrete state equation from the continuous physical model, it is difficult to set a physical model that precisely represents the controlled plant. Especially, it is difficult to set a physical model when the controlled plant has a strong nonlinear characteristics like an internal combustion engine. Due to this reason, the prior art sliding mode control process approximated the response delay of the controlled plant as a second order delay in a continuous system.




It is therefore an object of this invention to provide a more precise physical model for the sliding mode control of an engine air-fuel ratio.




In order to achieve the above object, this invention provides an air-fuel ratio control device for an engine with a combustion chamber for burning a mixture of air and fuel. The device comprises a mechanism which regulates an air-fuel ratio of the mixture, an air-fuel ratio sensor which detects the air-fuel ratio of the mixture from a composition of an exhaust gas of the engine; and a programmable controller.




The controller is programmed to calculate a state quantity σ(n) of a switching function based on a preset target air-fuel ratio TGABF, a detected air-fuel ratio AFSAF detected by the sensor, a state equation derived from a transfer function Geng(q) of a secondary discrete system representing the correlation between the air-fuel ratio of the mixture in the combustion chamber and the detected air-fuel ratio, and a predetermined switching function gain mat S, calculate a non-linear input u


nl


(n) for a sliding mode control process based on the state quantity σ(n) of the switching function, the predetermined switching function gain mat S, a predetermined non-linear gain η and a predetermined disturbance input β(n), calculate a linear input u


eq


(n) for the sliding mode control process based on a difference between the target air-fuel ratio TGABF and the detected air-fuel ratio AFSAF, and the switching function gain mat S, calculate an air-fuel ratio feedback correction value ALPHA from the non-linear input u


nl


(n) and the linear input u


eq


(n), and feedback control the air-fuel ratio regulating mechanism based on the air-fuel ratio feedback correction value ALPHA.




This invention also provides an air-fuel ratio control method for such an engine that is provided with a combustion chamber for burning a mixture of air and fuel, and a mechanism which regulates an air-fuel ratio of the mixture. The method comprises detecting the air-fuel ratio of the mixture from a composition of an exhaust gas of the engine, calculating a state quantity σ(n) of a switching function based on a preset target air-fuel ratio TGABF, a detected air-fuel ratio AFSAF, a state equation derived from a transfer function Geng(q) of a secondary discrete system representing the correlation between the air-fuel ratio of the mixture in the combustion chamber and the detected air-fuel ratio, and a predetermined switching function gain mat S, calculating a non-linear input u


nl


(n) for a sliding mode control process based on the state quantity σ(n) of the switching function, the predetermined switching function gain mat S, a predetermined non-linear gain η and a predetermined disturbance input β(n), calculating a linear input u


eq


(n) for the sliding mode control process based on a difference between the target air-fuel ratio TGABF and the detected air-fuel ratio AFSAF, and the switching function gain mat S, calculating an air-fuel ratio feedback correction value ALPHA from the non-linear input u


nl


(n) and the linear input u


eq


(n), and feedback controlling the air-fuel ratio regulating means based on the air-fuel ratio feedback correction value ALPHA.




The details as well as other features and advantages of this invention are set forth in the remainder of the specification and are shown in the accompanying drawings.











BRIEF DESCRIPTION OF THE DRAWINGS





FIG. 1

is a schematic diagram of a gasoline engine to which this invention is applied.





FIG. 2

is a block diagram describing a sliding mode control function of a controller according to this invention.





FIG. 3

is a diagram showing an engine physical model for describing a control process according to this invention.





FIG. 4

is a timing chart describing the step response characteristic of the air-fuel ratio variation in a cylinder, and a variation of the air-fuel ratio detected from the exhaust gas composition of the engine.





FIG. 5

is a diagram describing a variation of the state quantity of an error in a sliding mode control process according to this invention.





FIG. 6

is a diagram describing the design process of various functions and equations required for the sliding mode control process according to this invention.





FIG. 7

is a flowchart describing a routine for calculating an air-fuel ratio feedback correction value ALPHA performed by the controller.





FIG. 8

is a flowchart describing a subroutine for calculating a switching function gain element S


1


performed by the controller.





FIGS. 9A and 9B

are timing charts showing a variation of the air-fuel ratio feedback correction value ALPHA when the air-fuel ratio in the cylinder is controlled using a fixed integration gain in a low rotation-speed region.





FIGS. 10A and 10B

are timing charts showing a variation of the air-fuel ratio feedback correction value ALPHA when the air-fuel ratio in the cylinder is controlled using a fixed integration gain in a high rotation-speed region.





FIGS. 11A and 11B

are timing charts showing a variation of the air-fuel ratio feedback correction value ALPHA when the air-fuel ratio in the cylinder is controlled using a variable integration gain in the high rotation-speed region.





FIG. 12

is a flowchart describing a subroutine for calculating an integration gain μ performed by the controller.





FIG. 13

is a flowchart describing a subroutine for calculating a state quantity σ(n) of the switching function, a linear input u


eq


(n), a nonlinear input u


nl


(n) and a total control input U


sl


performed by the controller.





FIG. 14

is a block diagram describing a dead-time compensation function of a controller according to a second embodiment of this invention.





FIG. 15

is a block diagram describing a principle of the Smith method applied for a dead-time compensation.





FIG. 16

is a block diagram describing a disturbance correction combined with the dead-time compensation based on the Smith method, applied by the controller according to the second embodiment of this invention.





FIG. 17

is a flowchart describing a routine for calculating an estimated state variable performed by the controller according to the second embodiment of this invention.





FIG. 18

is a flowchart describing a subroutine for calculating a model dead time d


M


performed by the controller according to the second embodiment of this invention.





FIGS. 19A-19G

are timing charts describing a variation of a state quantity {circumflex over (x)}


2


(n) of the estimated state variable accompanying change-over of the model dead time d


M


, according to the second embodiment of this invention.





FIG. 20

is a flowchart describing a subroutine for calculating the estimated state variable during the model dead-time change-over performed by the controller according to the second embodiment of this invention.





FIGS. 21A and 21B

are timing charts describing a variation of the air-fuel ratio and the air-fuel ratio feedback correction value ALPHA under a control by a controller according to a third embodiment of this invention.





FIG. 22

is a diagram describing a variation of the state quantity of the error in a sliding mode control process according to the third embodiment of this invention.





FIG. 23

is a diagram describing a characteristic of a smoothing function applied by the controller according to the third embodiment of this invention.











DESCRIPTION OF THE PREFERRED EMBODIMENTS




Referring to

FIG. 1

of the drawings, a gasoline engine


1


for a vehicle is provided with a combustion chamber


1


A, an intake passage


2


and an exhaust passage


3


which are respectively connected to the combustion chamber


1


A via valves.




An intake throttle


4


is provided in the intake passage


2


.




A catalytic converter


7


which contains a three-way catalyst is provided in the exhaust passage


3


.




An air-fuel mixture of fuel and air is supplied to the combustion chamber


1


A when a fuel injector


5


injects fuel into the air aspirated by the combustion chamber


1


A through the intake passage


2


. The air-fuel mixture burns when a spark plug


6


installed in the combustion chamber


1


A ignites the air-fuel mixture.




After combustion, exhaust gas is ejected to the exhaust passage


3


. The exhaust gas is purified by the catalytic converter


7


and then ejected into the atmosphere.




The three-way catalyst in the catalytic converter


7


is a known catalyst which supports a noble metal such as platinum and rhodium, and an oxygen storage material such as cerium oxide, barium or a base metal on a catalyst support. The three-way catalyst promotes reduction of the nitrogen oxide (NOx) and oxidation of hydrocarbon (HC) and carbon monoxide (CO) in the exhaust gas when the air-fuel mixture burns near the stoichiometric air fuel ratio. It also has an oxygen storage function which stores oxygen contained in the exhaust gas and discharges the stored oxygen as the oxygen concentration in the exhaust gas decreases. In order for the oxygen storage function to function correctly, the air-fuel ratio of the air-fuel mixture burnt in the combustion chamber


1


A must be in the proper range.




An air-fuel ratio control of the air-fuel mixture is performed by a programmable controller


11


which regulates a fuel injection amount of the fuel injector


5


. The fuel injection timing of the fuel injector


5


and the ignition timing of the spark plug


6


are also controlled by the controller


11


.




The controller


11


comprises a microcomputer equipped with a central processing unit (CPU), read-only memory (ROM), random access memory (RAM) and I/O interface (I/O interface). It is also possible to construct the controller from plural microcomputers.




To perform the above control, detection data are input from a rotation speed sensor


13


which detects the rotation speed of the engine


1


, a crank angle sensor


12


which detects a predetermined crank angle of the engine


1


, an air flow meter


14


which detects an intake air amount of the intake passage


2


, a water temperature sensor


15


which detects a cooling water temperature of the engine


1


, and upstream and downstream air-fuel ratio sensors


16


,


17


which respectively detect the air-fuel ratio of the air-fuel mixture supplied to combustion chamber


1


A from the exhaust gas composition.




The upstream air-fuel ratio sensor


16


is disposed upstream of the catalytic converter


7


in the exhaust passage


3


, and the down-stream air-fuel ratio sensor


17


is disposed downstream of the catalytic converter


7


in the exhaust passage


3


.




The upstream air-fuel ratio sensor


16


comprises a so-called universal exhaust gas oxygen sensor which can detect a variation of the air-fuel ratio of the air-fuel mixture over a wide range from lean to rich.




The downstream air-fuel ratio sensor


17


comprises an oxygen sensor which changes output sharply when the air-fuel ratio of the air-fuel mixture varies beyond the stoichiometric air fuel ratio.




The controller


11


calculates an oxygen storage amount of the three-way catalyst based on the following premise. The noble metal which forms the three-way catalyst stores oxygen at high speed, and the oxygen storage material stores oxygen at low speed.




The oxygen storage material continues storage of oxygen even after the oxygen storage capacity of the noble metals is saturated. In oxygen release, when the proportion of the amount of oxygen release of the noble metal and the amount of oxygen release of oxygen storage material is less than a fixed proportion, oxygen is preferentially released from the noble metal. After the proportion of the release amounts reaches the fixed proportion, oxygen is released from the noble metal and oxygen storage material at the fixed proportion.




The controller


11


performs the air-fuel ratio control of the air-fuel mixture by making the oxygen storage amount of the noble metal, which performs storage and discharge of oxygen at high speed, a parameter. Even when the air-fuel ratio shifts from the stoichiometric air fuel ratio due to this control, the noble metal of the three-way catalyst performs oxygen storage or release at high speed so that the shift is compensated. In this way, the three-way catalyst maintains the oxygen concentration of the exhaust gas at a value corresponding to the stoichiometric air-fuel ratio, and the three-way catalyst shows a high exhaust gas purification capacity.




In the following description, the oxygen storage amount of the three-way catalyst implies the oxygen storage amount of the noble metal.




Now, the controller


11


calculates the oxygen storage amount of the three-way catalyst based on the air-fuel ratio detected by the upstream air-fuel ratio sensor


16


.




If the oxygen storage amount exceeds a target storage amount, the air-fuel ratio of the air-fuel mixture supplied to the combustion chamber


1


A will be corrected in the rich direction.




Conversely, if the oxygen storage amount is less than the target storage amount, the air-fuel ratio of the air-fuel mixture supplied to the combustion chamber


1


A will be corrected in the lean direction.




The controller


11


controls the air-fuel ratio so that the oxygen storage amount is equal to the target storage amount. The control of the air-fuel ratio is materialized by the control of the fuel injection amount of the fuel injector


5


.




As an error cumulates in the calculation of the oxygen storage amount in the above air-fuel ratio control process, the control precision deteriorates. Thus, the controller


11


resets the calculated oxygen storage amount to cancel out the error at a timing when the output of the downstream air-fuel ratio sensor


17


changes from rich to lean or vice versa.




The controller


11


applies a sliding mode control process to the feedback control of the air-fuel ratio. The function of the controller


11


with respect to the sliding mode control process is shown in FIG.


2


.




Referring to

FIG. 11

, the controller is provided with a target air-fuel ratio calculation unit


21


, a sliding mode control unit


22


and fuel injection amount calculation unit


30


.




In the following equation (1), the fuel injection amount calculation unit


30


calculates the fuel injection amount of the fuel injector


5


. Here, the fuel injection amount is expressed as pulse width CTI of an injection pulse-wave signal output to the fuel injector


5


from the controller


11


.








CTI


=(


TP·TFBYA+KATHOS


)·(


ALPHA+KBLRC−


1)+


TS+CHOS


  (1)






where.




TP=basic fuel injection pulse width,




TFBYA=target equivalence ratio,




KATHOS=open-loop correction value of the fuel injection amount,




ALPHA=air-fuel ratio feedback correction value,




KBLRC=air-fuel ratio learning value,




TS=ineffectual injection pulse width, and




CHOS=open-loop correction value of the fuel injection amount per cylinder.




The basic fuel injection amount TP is a value obtained by adding a correction for a transit time of air from the throttle


4


to combustion chamber


1


A, to a basic fuel injection pulse width corresponding to the throttle opening determined based on a depression amount of an accelerator pedal with which the vehicle is provided and the rotation speed of the engine


1


. The calculation of the basic fuel injection amount TP is known from U.S. Pat. No. 5,529,043.




The sliding mode control unit


22


comprises a switching function calculation unit


23


, a nonlinear input calculation unit


24


, a linear input calculation unit


25


, an integrator


26


, an adder


27


, a conversion unit


28


and a correction limitation unit


29


. The function of these parts will be described in full detail later.




As mentioned above, although it is well-known to apply a sliding mode control process to the feedback control of air-fuel ratio, this invention is based on a new concept with respect to the application of the sliding mode control process to calculation of the air-fuel ratio feedback correction value ALPHA.




Referring to

FIG. 3

, it is expected that the air-fuel ratio of the air-fuel mixture supplied to the combustion chamber


1


A of the engine


1


will be a target air-fuel ratio due to the open-loop correction values KATHOS and CHOS.




Therefore, the dynamic characteristic of the air-fuel mixture, the dynamic characteristic of exhaust gas and the dynamic characteristic of the upstream air-fuel ratio sensor


16


can be integrated, and can be expressed as a transfer function of a secondary discrete system.




Providing that the input to the engine


1


as a plant is the air-fuel ratio of the air-fuel mixture in the combustion chamber


1


A, and the output from the engine


1


is the air-fuel ratio detected by the upstream air-fuel ratio sensor


16


, the transfer function Geng(q) of the secondary discrete system except for the dead time may be expressed by the equation (2).










Geng


(
q
)


=




b
1

·
q

+

b
0




q
2

+


a
1

·
q

+

a
0







(
2
)













where,




q=dispersion system shift operator,




a


1


, a


0


=differentiation multipliers, and




b


1


, b


0


=differentiation multipliers.




It is confirmed experimentally that the relation between the above-mentioned input and output of the engine


1


is as shown in FIG.


4


. Therefore, the transfer function Geng(q) can be identified by the application of an Auto Regressive with eXogeneous Variable (ARX) model used for modeling a linear time-invariant system.




The system-identification approach using the ARX model is disclosed by Tokkai 2000-291484 published by the Japanese Patent Office in 2000.




It is also possible to identify the transfer function Geng(q) based on the method of least squares.




Even in a plant with a strong nonlinear nature like an engine, the step response of the air-fuel ratio can be measured in every operating region, and a transfer function can be identified for every operating region.




It should be noted that, in the following description, a matrix x(n) will be expressed as mat x(n).




The transfer function Geng(q) of the secondary discrete system is described by the following state equations (3) and (4) representing a state space expression of the secondary discrete system.













mat






(

x


(

n
+
1

)


)


=






mat







(
A
)

·

mat


(

x


(
n
)


)




+


mat


(
B
)


·

u


(
n
)










=







[








-

a
1




1





-

a
0




0







]

·

mat


(

x


(
n
)


)



+


[








b
1






b
0








]

·

u


(
n
)











(
3
)












maty


(


n


)=


mat


(


C





mat


(


x


(


n


))=[1 0


]·mat


(


x


(


n


))  (4)




where,




mat (A)=system matrix,




mat (B)=input matrix,




mat (C)=output matrix,




mat (x(n))=state variable,




mat (y(n))=output,




u(n)=input,




a


1


, a


0


=elements of system-matrix mat A, and




b


1


, b


0


=elements of input matrix mat B.




The elements a


1


, a


0


of the system-matrix mat A are identical to the differentiation multipliers a


1


, a


0


of the equation (2) and the elements b


1


, b


0


of input matrix mat B are identical to the differentiation multipliers b


1


, b


0


of the equation (2).




The input u(n) is the air-fuel ratio of the air-fuel mixture in the combustion chamber


1


A calculated from the pulse width CTI of the fuel injection pulse signal, and the output y(n) is the air-fuel ratio detected by the upstream air-fuel ratio sensor


16


.




The state variable used in the equation (3) and (4) is expressed by a matrix.




The controller


11


performs control of the air-fuel ratio of the air-fuel mixture in the combustion chamber


1


A repeatedly at a fixed interval. The subscript (n) of the equations (3) and (4) denotes a value on the present occasion and the subscript (n+1) denotes a value on the next occasion.




In the general state equations, m is the number of inputs and/is the number of outputs, where, m and l are positive integers. Here, the state equation has two inputs and two outputs,


2




a


and


2




b,


which are easy to grasp as physical quantities. Therefore, m=2 and l=2.




The state variable matx(n) is a column vector with two elements x


1


(n), x


2


(n). The output maty(n) is a column vector with two elements y


1


(n), y


2


(n). The output matrix mat C is determined such that the system has effectively one output. Specifically, y


1


(n)=x


1


(n) while y


2


(n)=0 in the equation (4). The air-fuel ratio AFSAF detected by the upstream air-fuel ratio sensor


16


is adopted as y


1


(n).




Summarizing the above relations, the following equations (5) and (6) are obtained.








y




1


(


n


)=


x




1


(


n


)=


AFSAF


  (5)










y




2


(


n


)=0  (6)






The elements a


1


, a


0


of the system-matrix mat A and the elements b


1


, b


0


of the input matrix mat B in the equation (3) have been fixed in the process of determining the transfer function of the equation (2).




Consider a servosystem which makes the state variable mat x(n) follow a certain orbit within the state space by applying a sliding mode control process to the system identified by the discrete system. The state amount mat e(n) of the error of the discrete system model is given as the difference between the state amount mat x(n) and a state quantity θ(n) of a target value corresponding to the orbit as shown by the following equation (7).










mat






e


(
n
)



=



mat






x


(
n
)



-

mat






θ


(
n
)




=


[









x
1



(
n
)








x
2



(
n
)









]

-

[









θ
1



(
n
)








θ
2



(
n
)









]







(
7
)













where,




e(n)=state quantity of error,




θ(n)=state quantity of target value,




x


1


(n), x


2


(n)=elements of state variable x(n),




θ


1


(n)=target value of x


1


(n), and




θ


2


(n)=target value of x


2


(n).




Since θ


1


(n) in the equation (7) is a target value when x


1


(n)=AFSAF, the target value θ


1


(n) is equal to the target air-fuel ratio TGABF. The controller


11


defines the switching function of the discrete system model by the following equation (8).













σ






(
n
)


=






mat






S
·
mat







e


(
n
)



=



[








S
1




S
2








]

·
mat







e


(
n
)










=







S
1

·

{



x
1



(
n
)


-


θ
1



(
n
)



}


+


S
2

·

{



x
2



(
n
)


-


θ
2



(
n
)



}









=




0







(
8
)













where,




σ(n)=state quantity of switching function,




mat S=switching function gain, and




S


1


, S


2


=elements of the switching function gain mat S.





FIG. 5

shows the variation of the state quantity mat e(n) of the error in the sliding mode control process that is indicated on a phase plane.




The state quantity mat e(n) of error is first constrained on the switching function represented by the straight line by the nonlinear input which represents the distance between the state quantity and the switching function in the drawing. Then, the switching function is slid by equivalent control input which is linear input, and it converges to the origin of the phase plane. In this way, the state variable mat x(n) can be made to converge to the state amount mat θ(n) of the target value. When S


2


is fixed, if S


1


, which is an element of the switching function gain mat S, is increased, the slope of the line will increase. In other words, the control gain increases.




As there are two elements of the state variable mat x(n), the switching function is expressed as a straight line, and is physically easy to grasp on the phase plane, but if there are three elements in the state variable mat x(n), the switching function will be a flat surface on the phase plane, and if the number of elements increases further, the switching function will be a super-flat surface.




Next, a method of calculating the control input of linear input and nonlinear input will be described. In a continuous system with sliding mode conditions, σ=0 and σ=0 hold.




Here, the differential value of σ is shown as σ. On the other hand, sliding mode conditions in a discrete system are expressed by the following equations (9) and (10).






σ(


n


)=0  (9)








Δσ(


n+


1)=σ(


n+


1)−σ(


n


)=0  (10)






Equation (10) is rewritten as the following equation (11).













Δ






σ


(

n
+
1

)



=






σ






(

n
+
1

)


-

σ


(
n
)









=






mat






S
·

{


mat






x


(

n
+
1

)



-

mat






θ


(

n
+
1

)




}



-

σ


(
n
)









=





mat






S
·

{


mat






A
·
mat







x


(
n
)



+

mat






B
·


u
eq



(
n
)




-
















mat






θ


(

n
+
1

)



}

-

(
n
)








(
11
)













If det (mat S·mat B)


−1


≠0 in the equation (6), linear input, i.e., equivalent control input, is expressed by the following equation (12), where det expresses determinant.













mat







u
eq



(
n
)



=







-


(

mat






S
·
mat






B

)


-
1



·
mat







S
·














{


mat






A
·
mat







x


(
n
)



-

mat






θ


(

n
+
1

)




}

-

σ


(
n
)










(
12
)













By rewriting the equation (12) using scalar values obtained from the equations (3) and (4), the following equation (13) will be obtained.














u
eq



(
n
)


=







(



S
1

·

b
1


+


S
2

·

b
0



)


-
1





(



a
1

·

S
1


+


a
0

·

S
2


+


S
1
2


S
2



)

·













{



x
1



(
n
)


-


θ
1



(
n
)



}








(
13
)













Next, a nonlinear input will be described. Nonlinear input can be applied arbitrarily.




Although the nonlinear input can be expressed as one function including a compensation for the disturbance, in this control system, the nonlinear input is divided into a portion β(n) for the disturbance and a portion α(n) for the other elements. As a result, the following equation (14) is obtained.








u




nl


(


n


)={α(


n


)+β(


n


)}·


sgn


[σ(


n


)]  (14)






where,




β(n)>Hmax,




α(n), β(n)=positive scalar value function, and




Hmax=maximum estimated value of disturbance.




sgn[σ(n)] of the equation (14) expresses a sign function. According to this function, when the state amount σ(n)>0, sgn[σ(n)]=1, and when the state quantity σ(n)<0, sgn[σ(n)]=−1. The sign function is necessary so that, for example, when the state quantity mat e(n) of the error crosses the line of the switching function in

FIG. 5

towards the lower side, the nonlinear input returns the state amount of the error towards the upper side beyond the switching function on the next occasion when the control is performed.




The conditions of the nonlinear input to prevent so called chattering of the result are expressed by the following relations (15) and (16).




(i) In the case of state amount σ(n)>0:






0≦σ(


n+


1)≦σ(


n


)  (15)






(ii) In the case of state amount σ(n)<0:






σ(


n


)≦σ(


n+


1)≦0  (16)






Relation (15) means that the state amount of the error is closer to zero, which is the convergence point, on the next occasion (n+1) than on the present control occasion (n).




The scalar value function α(n) which satisfies the conditional relation (15) is calculated using the following equation (17) which is derived from the equation (8).






σ(


n+


1)=


mat S·mat e


(


n+


1)  (17)






When the state amount σ(n)=mat S mat e(n) in the system expressed by the state equations (3) and (4), the input which satisfies the relation of σ(n)=σ(n+1)=σ(n+2) is the linear input calculated by the equation (13). The equation (17) in this case is expressed by the following equation (18).













σ


(

n
+
1

)


=





mat






S
·

(


mat






x


(

n
+
1

)



-

mat






θ


(

n
+
1

)




}









=





mat






S
·

[


mat






A
·
mat







x


(
n
)



+

mat






B
·


















{



u
nl



(
n
)


+


u
eq



(
n
)



}

-

mat






A
·
mat







θ


(
n
)




]






=






α


(
n
)


+

mat






S
·
mat







B
·


u
nl



(
n
)












(
18
)













From the equation (18), the conditions which satisfy the equation (15) are expressed by the following equation (19).









mat S·mat B∥·α


(


n


) ∥α(


n


)∥  (19)






From the equation (19), the scalar value function σ(n) which satisfies the equation (15) is expressed by the following equation (20).






σ(


n


)=η·∥


mat S·mat B∥




−1


·∥σ(


n


)∥  (20)






where,




η=nonlinear gain (0<η<1), and σ(n+1)>σ(n)>0.




Therefore, the nonlinear input u


nl


(n) is expressed by the following equation (21).














u
nl



(
n
)


=






{


η




·


&LeftDoubleBracketingBar;

mat






S
·
mat






B

&RightDoubleBracketingBar;


-
1


·

&LeftDoubleBracketingBar;

σ


(
n
)


&RightDoubleBracketingBar;


+

β


(
n
)



}

·

sgn




[

σ


(
n
)


]














{


η




·


&LeftBracketingBar;



S
1

·

b
1


+


S
s

·

b
0



&RightBracketingBar;


-
1


·

&LeftBracketingBar;

σ


(
n
)


&RightBracketingBar;


+

&LeftBracketingBar;

β


(
n
)


&RightBracketingBar;


}

·

sgn




[

σ


(
n
)


]









(
21
)













where,




0<η<1 and σ(n+1) σ(n)>0.




The equation (21) prevents chattering while providing robust air-fuel ratio control to external disturbance.




Thus, after calculating the linear input u


eq


(n) by the equation (13) and calculating the nonlinear input u


nl


(n) by the equation (21), the air-fuel ratio control input u


sl


(n) which is the total control input is calculated by the following equation (22).








u




sl


(


n


)=κ∫


u




eq


(


n


)


dt+u




nl


(


n


)  (22)






where,




κ=integration gain.




The first term on the right-hand side of the equation (22) integrates the linear input u


eq


(n). The integrator


26


shown in

FIG. 2

is provided for this purpose.




The objective of the integrator


26


is to improve convergence to the target air-fuel ratio which is variable, and to absorb the steady-state deviation.




Next, referring to

FIG. 6

, the design flow of the sliding mode control process in the development stage of the air-fuel ratio controller will be described.




First, in a step S


1


, the step response of the air-fuel ratio detected by the upstream air-fuel ratio sensor


16


with respect to the air-fuel ratio in the combustion chamber


1


A is measured, and the results shown in

FIG. 4

are for example obtained. The step response measurement is performed for various cylinder intake air amounts Qc of the engine


1


calculated from the output signal of the air flow meter


14


.




Next, in a step S


2


, the second order transfer function Geng(q) of the discrete system is identified using an ARX model or the method of least squares. As a result of the identification, the elements a


1


, a


0


of the system matrix mat A and the elements b


1


, b


0


of the input matrix mat B are determined according to the intake air amount Qc. Next, in a step S


3


, the transfer function Geng(q) is converted to the state equations of the secondary discrete system expressed by the equations (3), (4).




Next, in a step S


4


, the switching function σ(n)=0 is designed.




In subsequent steps S


5


, S


6


, S


7


, the equation (13) for calculating the linear input u


eq


(n), the equation (21) for calculating the nonlinear input u


nl


(n), and the equation (22) for calculating the air-fuel ratio control input u


sl


(n), are designed, respectively.




Next, the difference between the sliding mode control process according to this invention and the sliding mode control process applied by the above-mentioned prior art U.S. Pat. No. 6,266,605 will be described.




A canonical system expressed by the next equation (23) will be taken as an example.














t




[




x
1






x
2




]


=



[




A
11




A
12






A
21




A
22




]

·

[




x
1






x
2




]


+


[



0





B
2




]

·
u






(
23
)













where,




x


1


∈R


n−m


, and




x


2


∈R


m


.




In the prior art example, an extension field shown by the following equation (24) which adds a value z which is an integration of the difference of a target value θr and the output θy to the state variable is used.














t




[



z





x
1






x
2




]


=



[



0



-
C



0




0



A
11




A
12





0



A
21




A
22




]

·

[



z





x
1






x
2




]


+


[



0




0





B
2




]

·
u

+



[



1




0




0



]

·
θ






r






(
24
)













where,




A∈R


n m


, x∈R


n


, B∈R


n m


, and






z
=



0
t




(


θ





r

-

θ





y


)








t













In the extension field, the switching function is defined by the following equation (25).






σ(


n


)=


mat S·mat x=S




1




·z+S




2




·x




1




+x




2


=0  (25)






In the above-mentioned extension field, as the integral term z exists in the equation (25), the operation of the nonlinear input equation (21) which originally assures response when there is a state change becomes slow, and the robustness to disturbances is also low.




In this invention, by giving an integration term to the linear input as in the equation (22), rapid convergence to the target air-fuel ratio is achieved without reducing the response even in the case where an extension field is used.




Next, a routine for calculating the air-fuel ratio feedback correction value ALPHA performed by the controller


11


will be described referring to FIG.


7


.




This routine is performed at an interval of ten milliseconds when the engine


1


is operated by considering the stoichiometric air fuel ratio as the target air-fuel ratio. Alternatively, it may be performed at a predetermined crank angle detected by the crank angle sensor


12


.




This routine corresponds to the function of the sliding mode control unit


22


of FIG.


2


.




In a first step S


11


, the controller


11


reads the target air-fuel ratio TGABF, and in a following step S


12


, reads the real air-fuel ratio AFSAF.




In a following step S


13


, the state amounts x


1


, x


2


are calculated. From the equation (4), y


1


=x


1


and y


2


=0 are satisfied. y


1


is the air-fuel ratio AFSAF detected by the upstream air-fuel ratio sensor


16


. The equation (23) denotes simultaneous equations with two variables, [x


1


, x


2


]. If this is solved for the state amounts x


1


, x


2


, x


2


can be calculated as a function of x


1


. Then, x


2


can be calculated if the detected air-fuel ratio AFSAF is substituted for x


1


.




In a following step S


14


, elements S


1


, S


2


of the switching function gain mat S is determined. The determination is performed by executing a subroutine shown in

FIG. 8

which will be described later. The processing of the step S


14


corresponds to the function of the switching function calculation unit


23


of FIG.


2


.




In a following step S


15


, the nonlinear input u


nl


(n) is calculated by the equation (21) using the state amount σ(n), nonlinear gain η, switching function gain mat S, input matrix mat B, scalar value function β(n), and the sign function sgn[σ(n)].




The processing of the step S


15


corresponds to the function of the nonlinear input calculation unit


24


of FIG.


2


.




In a following step S


16


, the linear input u


eq


(n) is calculated by the equation (13) using the state amount x


1


(n), target value σ


1


(n), switching function gain mat S, input matrix mat B and system-matrix mat A. The processing of the step S


16


corresponds to the function of the linear input calculation unit


25


of FIG.


2


.




In a following step S


17


, the linear input u


eq


(n) is integrated.




In a following step S


18


, the sum of the integral value and the nonlinear input u


nl


(n) is calculated as the air-fuel ratio control input u


sl


(n). The processing of the steps S


17


, S


18


corresponds to the function of the integrator


26


of FIG.


2


.




In a following step S


19


, the air-fuel ratio control input u


sl


(n) is converted to the air-fuel ratio feedback correction value ALPHA by the following equation (26).









ALPHA
=


CYLAF

{

CYLAF
+


u
sl



(
n
)



}


·
100





(
26
)













where,




CYLAF=air-fuel ratio of the air-fuel mixture which burns in the combustion chamber


1


A.




In the equation (25), units are converted from ratios to percentages. The processing of the step S


19


corresponds to the function of the conversion unit


28


of FIG.


2


.




In a following step S


20


, the controller


11


limits the air-fuel ratio feedback correction value ALPHA with a predetermined limiting value.




Processing of step S


20


corresponds to the function of the correction limitation unit


29


of FIG.


2


.




In the last step S


201


, an injection pulse-wave signal corresponding to the air-fuel ratio feedback correction value ALPHA after limitation is output to the fuel injector


5


.




The processing of the step S


201


corresponds to the function of the fuel injection amount calculation unit


30


of FIG.


2


.




A controller


11


terminates the routine after processing of the step S


201


.




The equation (26) is reduced from the following equation (27).









CYLAF
=


14.76
·
TP


TP
·
TFBYA
·

(

ALPHA
+
KBLRC
-
1

)







(
27
)













Next, the setting process of the element S


1


of the switching function gain mat S when the air-fuel ratio of the air-fuel mixture in the combustion chamber


1


A is feedback controlled is described.




Herein, what is required is to calculate only one element S


1


of the switching function gain mat S. Another element S


2


is necessarily equal to 1 or −1 for the reason later mentioned.




If the air-fuel ratio of the air-fuel mixture in combustion chamber


1


A changes suddenly as a result of air-fuel ratio feedback control, an undesirable effect may appear in the drivability of the vehicle or in the exhaust gas composition of the engine


1


.




So, it is necessary to limit the feedback correction amount of the fuel injection amount with a threshold value so as not to cause the variation in the air-fuel ratio of the air-fuel mixture to become excessively large.




On the other hand, if the air-fuel ratio feedback correction amount is suppressed to a small value, the convergency to the target air-fuel ratio will be slower.




To summarize the above, the convergency of the air-fuel ratio to the target air-fuel ratio and drivability of the vehicle as well as the exhaust gas composition of the engine may have the a trade-off relation.




The integral gain μ which provides a preferable time constant with respect to the air-fuel ratio control response is expressed by the following equation (28). This equation (28) is obtained from the equation (13) which calculates the linear input u


eq


(n) and the integration term of the right-hand side of the equation (22) which calculates the air-fuel control input u


sl


(n).









μ
=

κ
·


(



S
1

·

b
1


+


S
2

·

b
0



)


-
1


·

(



a
1

·

S
1


+


a
0

·

S
2


+


S
1
2


S
2



)






(
28
)













If the integration gain K of the linear input is set equal to unity in the equation (28), the element S


1


of the switching function gain mat S which represents the slope of the straight line in

FIG. 5

is expressed by the following equation (29).










S
1

=


[



-

S
2


·

(


a
1

-

μ
·

b
1



)


±


S
2

·


{



(


a
1

-

μ
·

b
1



)

2

-

(


a
0

-

μ
·

b
0



)


}


1
2




]

2





(
29
)













Since S


1


calculated by the equation (29) can take two values, the controller


11


performs stability distinction and selects the value that provides higher stability.




Next, referring to

FIG. 8

, the subroutine for calculating the element S


1


of the switching function gain mat S will be described. This subroutine is performed as a part of the processing of the step S


14


of the routine of

FIG. 7

, which calculates the air-fuel ratio feedback correction value ALPHA.




First in a step S


21


, the controller


11


determines the integral gain μ that provides the aforesaid preferable time constant with respect to the air-fuel ratio control response.




Here, the integral gain μ is determined by performing a subroutine shown in

FIG. 12

, but it is also possible to those skilled in the art to set the integral gain μ to a fixed value that is empirically proved to be practical.




In a following step S


22


, based on the integral gain μ, the element S


1


of the switching function gain mat S is calculated by the equation (29).




Although the value of S


2


is required in order to calculate the element S


1


, due to the reason described below, the value of S


2


is equal to unity when the element a


0


of the system-matrix mat A is a positive value and the value of S


2


is equal to negative unity when the element a


0


of the system-matrix mat A is a negative value.




Referring to

FIGS. 9A

,


9


B and

FIGS. 10A

, and


10


B, a variation of the air-fuel ratio feedback correction value ALPHA when the integration gain μ is set to a fixed value will be described.





FIGS. 9A and 9B

show a variation of the air-fuel ratio feedback correction value ALPHA at a low engine rotation speed, and

FIGS. 10A and 10B

show a variation of the air-fuel ratio feedback correction value ALPHA at a high engine rotation speed.




Since the fuel injection amount per unit time increases with a raise of the rotation speed of an engine


1


in calculating the air-fuel ratio feedback correction value ALPHA at intervals of fixed time spacing, i.e., ten milliseconds, the variation of the air-fuel ratio feedback correction value ALPHA per one injection at high rotation speed is smaller than that at low rotation speed. With respect to the examples shown in the figures, ALPHA varies for two percent at low rotation speed while it varies for five percent at high rotation speed under an identical integration gain.




Therefore, when the integration gain matched with low rotation is applied to high rotation, the variation of the air-fuel ratio feedback correction value ALPHA per one injection becomes too small, and the air-fuel ratio control response will be poor.




Due to the above reason, in order to maintain the air-fuel ratio control response in a desirable range, it is preferable to vary the value of the integration gain according to the rotation speed of an engine


1


.





FIGS. 11A and 11B

show a variation of the air-fuel ratio feedback correction value ALPHA when the integration gain is set according to the rotation speed of an engine


1


.




By selecting a different integration gain according to the rotation speed of an engine


1


, the variation of the air-fuel ratio feedback correction value ALPHA per one injection can be increased to five percent that is equal to the value obtained in the case of

FIGS. 9A and 9B

.




The axis of abscissa of these diagrams is a crank angle, and a perpendicular broken line shows spacing of the Ref signal which a crank angle sensor


12


outputs at a predetermined rotation position of the engine


1


.




Ref signal is output at intervals of 180 degrees with a four-stroke cycle four cylinder engine.




The subroutine of

FIG. 8

for calculating the element S


1


of the switching function gain mat S is provided to satisfy the above requirement.




Next, referring to

FIG. 12

, the subroutine for setting the integration gain μ will be described. This subroutine is performed in the step S


21


of the subroutine of FIG.


8


.




First, in a step S


31


, the rotation speed Ne of the engine


1


is read. The rotation speed Ne is obtained from the signal input to the controller


11


from the crank angle sensor


12


.




In a following step S


32


, with reference to the map of a characteristic as shown in the figure, a correction factor KNE is obtained according to the rotation speed Ne.




In a following step S


33


, the integration gain μ is calculated by multiplying an integration gain basic value μ0 by the correction factor KNE. Herein, the integration gain basic value is a fixed value matched with the minimum rotation speed of an engine


1


.




In the step S


21


of

FIG. 8

, therefore, the element S


1


of the switching function gain mat S is calculated using the integration gain that is set according to the rotation speed of the engine


1


.




The controller


11


applies the switching function gain element S


1


thus calculated, for the calculation of the nonlinear input in the step S


15


and for the calculation of the liner input in the step S


16


of the routine of FIG.


7


.




Next, the calculation of the nonlinear input and the linear input using the switching function gain element S


1


will be described in detail below.




First, the equation (8) defining the state quantity σ(n) of the switching function is converted into the following equation (30) using the equation (7).













σ


(
n
)


=





mat






S
·
mat







e


(
n
)
















S
1

·

{



x
1



(
n
)


-

θ
1


}


+


S
2

·

{



x
2



(
n
)


-

θ
2


}
















S
1

·

{



x
1



(
n
)


-

θ
1


}


-


S
2

·

a
0

·

{



x
1



(

n
-
1

)


-

θ
1


}










(
30
)













The sign of the state quantity mate of the error must have alternated when the state quantity mat e(n) of the error crosses the line of the switching function shown in FIG.


5


.




Therefore, the sign of the first term and the sign of the second term of the right hand side of the equation (30) must be different.




The following conditions are drawn from the above logic.




(i) In the case of a


0


>0, S


2


=1, and




(ii) in the case of a


0


<0, S


2


=−1.




The state quantity σ(n) of the switching function in each of the above conditions can be expressed by the following equations (31) and (32) using the elements.




(i) In the case of a


0


>0:






σ(


n


)=


S




1




·{x




1


(


n


)−θ


1




}+{x




2


(


n


)−θ


2


}  (31)






(ii) In the case of a


0


<0:






σ(


n


)=


S




1




·{x




1


(


n


)−θ


1




}−{x




2


(


n


)−θ


2


}  (32)






Moreover, if the above conditions (i) and (ii) are applied to the equation (13) of the linear input, the equation (21) of the nonlinear input, the total control input, and the equation (22) of the total control input or the air-fuel ratio control input, the following equations (33)-(38) will be obtained.




The actual calculation of the steps S


15


-S


17


of the routine of

FIG. 7

is performed using these equation (33)-(38).




Linear Input




(i) In the case of a


0


>0:








u




eq


(


n


)=(


S




1




·b




1




+b




0


)


−1


·(


a




1




·S




1




+a




0


+1)·{


x




1


(


n


)−θ


1


(


n


)}  (33)






(ii) In the case of a


0


<0:








u




eq


(


n


)=(


S




1




b




1




−b




0


)


−1


·(


a




1




·S




1




−a




0


−1)·{


x




1


(


n


)−θ


1


(


n


)}  (34)






Nonlinear Input




(i) In the case of a


0


>0:








u




nl


(


n


)={η|


S




1




·b




1




+b




0


|


−1


|σ(


n


)|+β(


n


)}·


sgn


[σ(


n


)]  (35)






where,




0<η<1 and σ(n+1)σ(n)>0.




(ii) In the case of a


0


<0:








u




nl


(


n


)={η|


S




1




·b




1




−b




0


|


−1


|σ(


n


)|+β(


n


)}·


sgn


[σ(


n


)]  (36)






where,




0<η<1 and σ(n+1)σ(n)>0.




Total Control Input




(i) In the case of a


0


>0:














u
sl



(
n
)


=





κ
·



[



(



S
1

·

b
1


+

b
0


)


-
1





(



a
1

·

S
1


+

a
0

+
1

)

·



















{



x
1



(
n
)


-


θ
1



(
n
)



}

]


·






t


+


{


η



&LeftBracketingBar;



S
1

·

b
1


+

b
0


&RightBracketingBar;


-
1




&LeftBracketingBar;

σ


(
n
)


&RightBracketingBar;


+

β


(
n
)



}

·












sgn


[

σ


(
n
)


]









(
37
)













(ii) In the case of a


0


<0:














u
sl



(
n
)


=





κ
·



[



(



S
1

·

b
1


-

b
0


)


-
1





(



a
1

·

S
1


-

a
0

-
1

)

·



















{



x
1



(
n
)


-


θ
1



(
n
)



}

]


·






t


+


{


η



&LeftBracketingBar;



S
1

·

b
1


-

b
0


&RightBracketingBar;


-
1




&LeftBracketingBar;

σ


(
n
)


&RightBracketingBar;


+

β


(
n
)



}

·












sgn


[

σ


(
n
)


]









(
38
)













Next, referring to

FIG. 13

, a subroutine performed by the controller


11


for calculating the state quantity σ(n) of the error, the linear input u


eq


(n), the nonlinear input u


nl


(n), and the total control input u


sl


will be described.




This subroutine corresponds to the calculation processing of the step S


14


through the step S


18


of the routine of

FIG. 7

, but will be described more in detail according to the positive/negative sign of the element a


0


of the system matrix mat A.




The controller


11


determines first whether the sign of the element a


0


is positive in a step S


41


.




When the sign of the element a


0


is positive, the processing of steps S


42


-S


45


is performed. When the sign of the element a


0


is not positive, the processing of steps S


46


-S


49


is performed.




In the step S


42


, the state quantity σ(n) of the switching function is calculated by the equation (31).




In the following step S


43


, the linear input u


eq


(n) is calculated by the equation (33).




In the following step S


44


, the nonlinear input u


nl


(n) is calculated by the equation (35).




In the following step S


45


, the total control input u


sl


(n) is calculated by the equation (37). After the processing of the step S


45


, the controller


11


terminates the subroutine.




On the other hand, in the step S


46


, the state quantity σ(n) of the switching function is calculated by the equation (32).




In the following step S


47


, the linear input u


eq


(n) is calculated by the equation (34).




In the following step S


48


, the nonlinear input u


nl


(n) is calculated by the equation (36).




In the following step S


49


, the total control input u


sl


(n) is calculated by the equation (38). After the processing of the step S


49


, the controller


11


terminates the subroutine.




The sliding mode control process of the air-fuel ratio performed by the controller


11


is described above.




The controller


11


according to this invention selectively applies a different transfer function Geng(q) of the secondary discrete system according to the operation range of the engine


1


. For this purpose, various transfer functions Geng(q) are previou


sl


y identified through the process of the step response in various operation ranges. The controller


11


performs air-fuel ratio feedback control by applying a sliding mode control process based on the state equation of the secondary discrete system converted from the selected transfer function Geng(q).




Therefore, a plant model can be built with more accuracy than that built with the prior art technique which computes the state equation for the sliding mode control process from a physical model of continuous system.




Moreover, the responsibility and robustness of control improve compared with classic control like three element control.




The sliding mode control process increases the response in the air-fuel ratio control as well as its robustness compared with a classic control process such as a proportional/integral/derivative (PID) control process. Since the switching function is uniquely identified by step response measurement, the switching function as well as the linear input for the sliding mode control process can be designed easily.




According to this invention, the total control input u


sl


(n) is calculated based on the integral value of the linear input u


eq


(n) that was calculated by the integrator


26


. Compared with the case where it is calculated directly from the linear input u


eq


(n), this process eliminates a steady state error while maintaining the control response at a preferred level.




If a large control input is given to the fuel injector


5


in order to accelerate the convergence of the air-fuel ratio to the target air-fuel ratio, the drivability of the vehicle as well as the exhaust emission of the engine


1


may deteriorate. To avoid such a situation, it is required to determine the switching function gain mat S and the integration gain μ according to the operation range of the engine


1


.




The controller


11


according to this invention first calculates the integration gain μ according to the rotation speed of the engine


1


and then determines the switching function gain mat S using the equation (29), so the design of the switching function is easy.




When the feedback control of the fuel injection amount is performed at fixed time intervals, the number of fuel injections per unit time increases as the rotation speed of the engine


1


increases, and the apparent feedback gain decreases.




As a result, the trackability to the target value of the air-fuel ratio in a high rotation speed range may not be as good as in a low rotation speed range.




Since the controller


11


according to this invention calculates the integration gain μ according to the engine rotation speed, even when the feedback control of the air-fuel ratio is performed at fixed time intervals, decrease in the apparent integration gain does not occur and the optimal integration gain is obtained all over the engine operation range.




The controller


11


according to this invention, switches the sign of the element S


2


of the switching function gain mat S according to the sign of the element a


0


. which represents the state of the system matrix mat A, so the air-fuel ratio is always corrected in the right direction even in the case where the state of the system matrix has varied.




Next, referring to

FIGS. 14-20

, a second embodiment of this invention will be described.




In the first embodiment, the engine


1


is assumed to be a simple system without dead time. However, in reality, the dead time cannot be ignored in order to perform a precise air-fuel ratio control of the engine. In this embodiment, the controller


11


is further provided with a state estimation unit


31


for processing of the dead time as shown in FIG.


14


.




The state estimation unit


31


is equipped with a cylinder intake air-fuel ratio calculation unit


32


, a model schedule unit


33


, a plant-model state-variable calculation unit


34


, and an estimated state variable calculation unit


35


.




Respective functions of these units will be described later with reference to the flowchart of FIG.


17


.




The processing of the dead time performed by the controller


11


will first be described.




The basic idea for controlling a plant which has dead time is explained in detail below.




Herein, the engine


1


having a dead time in the air-fuel ratio regulation is the control object of the controller


11


, so in the following description, it will be referred to as a controlled plant.




The controlled plant can be expressed by the following equations (39) and (40).








mat x


(


n+


1)=


mat A·mat x


(


n


)+


mat B·u


(


n−d


)  (39)










mat y


(


n


)=


mat C·mat x


(


n


)  (40)






where,




mat x(n)=state quantity of the controlled plant,




mat y(n)=output of the controlled plant,




u(n−d)=input of the controlled plant,




mat A=system matrix of the controlled plant,




mat B=input matrix of the controlled plant,




mat C=output matrix of the controlled plant, and




d=dead time of the controlled plant.




Comparing the equation (39) with the equation (3), the only difference is that u(n) of the equation (3) is replaced by u(n−d) in the equation (39).




The equation (40) is identical to the equation (4).




The equations (3) and (4) are state equations for a plant without dead time. In contrast with the controlled plant, a plant without dead time is hereinafter referred to as a plant model.




In order to distinguish the state equations for the controlled plant from those of the plant model, in the following description, subscript M will be attached to the state variables of the plant model.




According to this notation, the state equations (3) and (4) representing the plant model are rewritten into the following equations (41) and (42).








mat x




M


(


n+


1)=


mat A·mat x




M


(


n


)+


mat B·u


(


n


)  (41)










mat y




M


(


n


)=


mat C·mat x




M


(


n


)  (42)






where,




mat x


M


(n)=state variable of the plant model,




mat y


M


(n)=output of the plant model,




u(n)=input of the plant model,




mat A=system matrix of the plant model,




mat B=input matrix of the plant model,




mat C=output matrix of the plant model, and




mat x(n)=state variable.




Although the transfer function Geng(q) of the plant model is expressed with the equation (2), the transfer function Geng(z) of the controlled plant is expressed with the following equation (43).










Geng


(
z
)


=




b
1

·

z

-
1



+


b
0

·

z

-
2





{

1
+


(


z

-
1


-
d

)

·

a
1


+



(


z

-
1


-
d

)

2

·

a
0



}






(
43
)













where,




a


1


, a


0


=differentiation multiplier,




b


1


, b


0


=differentiation multiplier, and




d=dead time.




U.S. Pat. No. 5,544,039 disclose the correction approach using the Smith method shown in

FIG. 15

, in order to compensate the effect of the dead time which the controlled plant suffers.




The Smith method is a compensation method for the dead time developed by O. J. M. Smith, Department of Electrical Engineering and Computer Sciences, University of California, Berkeley.




According to the Smith method, the state variable mat {circumflex over (x)}(n+d


M


) of the controlled plant after the model dead time d


M


has elapsed is expressed with the following equation (44).




The state variable of the controlled plant after the model dead time d


M


has elapsed is referred to as an estimated state variable in the following description.













mat







x
^



(

n
+

d
M


)



=






mat







A
d

·
mat







x


(
n
)



+













[

B
,

A





B

,





,


A

d
-
1



B


]

·

[








u


(

n
-
1

)












u


(

n
-

d
M


)









]









(
44
)













where,




mat {circumflex over (x)}(n+d


M


)=estimated state variable.




The above equation (44) is transformed using the equations (41) and (42) to the following equation (45).













mat







x
^



(
n
)



=





mat






x


(

n
+

d
M


)









=






mat







A
d

·
mat







x


(
n
)



+

mat







x
M



(
n
)



-












mat







A
d

·
mat








x
M



(

n
-

d
M


)










(
45
)













mat x


M


(n−d


M


) of the right-hand side of the equation (45) is the state variable of the plant model after the model dead time d


M


has elapsed. Although the Smith method can apply a desirable response to target value input, it is known that the transient response over a disturbance is not necessarily good.




In order to improve this drawback, adding a disturbance compensator, as shown in

FIG. 16

is known.




A method of designing the disturbance compensator is disclosed for example by “Control of Dead Time System” issued by Corona publishing company under the supervision of the Society of Measurement and Automatic Control.




In the air-fuel control device according to this invention, research on the actual dynamic characteristics of a model shown in

FIG. 16

, and the transfer function M(z) was designed based on the research result.




To summarize the research result, due to the observability of the state variable mat x(n), the estimated state variable mat x(n) can be expressed by the equations (46), (47) or the equation (48) below.













mat







x
^



(
n
)



=





mat






x


(

n
+

d
M


)









=






mat







M


(
n
)


·

{


mat






x


(
n
)



-

mat







x
M



(

n
-

d
M


)




}



+












mat







x
M



(
n
)










(
46
)












mat M


(


n


)=1  (47)






or
















mat







x
^



(
n
)



=





mat






x


(

n
+

d
M


)









=






mat






x


(
n
)



-

mat







x
M



(

d
-

d
M


)



+

mat







x
M



(
n
)











(
48
)













where,




mat {circumflex over (x)}(n)=state variable of the controlled plant after the model dead time d


M


has elapsed,




mat x(n)=state variable of the controlled plant,




mat x


M


(n)=state variable of the plant model,




mat x


M


(n−d


M


)=state variable of the plant model after the model dead time d


M


has elapsed, and




mat M(n)=system matrix of the disturbance compensator.




When the equation (48) is expressed with scalar values, the state quantities {circumflex over (x)}


1


(n) and {circumflex over (x)}


2


(n) of the estimated state variable mat {circumflex over (x)}(n) are expressed by the following equations (49) and (50). In the following description {circumflex over (x)}


1


(n) and {circumflex over (x)}


2


(n)) are referred to as an estimated state quantity.








{circumflex over (x)}




1


(


n


)=


x




1


(


n+d




M


)=


x




1M


(


n−d




M


)+


x




1M


(


n


)  (49)










{circumflex over (x)}




2


(


n


)=


x




2


(


n+d




M


)=


x




2


(


n


)−


x




2M


(


n−d




M


)+


x




2M


(


n


)  (50)






The meaning that the equation (48) implies will now be described with respect to a case where there is no disturbance, and a case where there is a disturbance.




(i) When There is No Disturbance:




Providing that there is no disturbance and that the plant model precisely represents the controlled plant, the second term of the right hand side of the equation (48), i.e., the state variable mat x


M


(n−d


M


) of the plant model after model dead-time d


M


has elapsed should be equal to the state variable mat x(n) that can actually be observed. In this case, the equation (48) can therefore be rewritten into the following equation (51).








mat x




M


(


n−d




M


)=


mat x


(


n


)  (51)






In other words, the right-hang side of the equation (48) consists only of the third term mat x


M


(n).




The state variable mat x


M


(n) of the plant model is an estimated value of the state variable mat x(n) that will be detected in the controlled plant after the actual dead time d has elapsed, so it can be regarded as the estimated state quantity {circumflex over (x)}


1


(n).




In this case, the controller


11


performs a feedback control of the air-fuel ration of the air-fuel mixture in the engine


1


using the estimated state quantity {circumflex over (x)}


1


(n) as a parameter.




(ii) When There is a Disturbance:




Providing that a load g due to the:disturbance is exerted or the plant model cannot represent the controlled plant correctly, the state variable mat x


M


(n−d


M


) of the plant model after the model dead time d


M


has elapsed will bring a different result from the state variable mat x(n) of the controlled plant that is actually observed later.




In this state, the second term of the right-hand side of the equation (48) cannot be eliminated.




If the disturbance g is step input here, or a variation of the state variable mat x(n) of the controlled plant is a step response, the state variable mat x


M


(n) will take the same value as the state variable x


M


(n−d


M


), when the model dead time d


M


has really elapsed.




If the system matrix mat M(n) of the disturbance compensator is equal to unity, the right-hand side of the equation (46) will consist only of the state variable mat x(n) of the controlled plant that is actually observed.




In this case, the controller


11


will perform feedback control of the air-fuel ratio by using the state variable mat x(n) of the controlled plant as a parameter. Although it is not a feedback control based on the estimated state, the effect of the disturbance can be eliminated.




Thus, in

FIG. 16

, by setting the transfer function M(z) of the disturbance compensator equal to unity, the combination of the dead time compensation according to Smith method and the disturbance compensation can be realized.




Next, referring to

FIG. 17

, a routine for calculating the estimated state variable mat {circumflex over (x)}(n) will be described.




This routine corresponds to the function of the state estimation unit


31


in

FIG. 14

, and is performed at intervals of ten milliseconds, when the engine


1


is operated with the target air-fuel ratio equivalent to the stoichiometric air-fuel ratio.




First, in a step S


51


, the controller


11


calculates the state quantities x


1


(n) and x


2


(n).




Here, x


1


(n) is equal to the air-fuel ratio AFSAF detected by the upstream air-fuel ratio sensor


16


. x


2


(n) is calculated by the equation (66) which will be described later. The state variable mat x(n) is determined from these state quantities x


1


(n) and x


2


(n).




In a step


52


, the cylinder intake air amount Qc is calculated by the following equation (52). The equation (52) calculates the cylinder intake air amount Qc by performing a reverse calculation from the basic fuel injection pulse width TP.









Qc
=

TP

KCONSTA

#






(
52
)













where,




Qc=cylinder intake air amount (kilogram/cycle),




TP=basic fuel injection pulse width (millisecond/cycle), and




KCONST#=constant (millisecond/kilogram).




In a following step S


53


, the system matrix mat A, the input matrix mat B, and the model dead time d


M


of the plant model are calculated based on the cylinder intake air amount Qc by performing a subroutine shown in FIG.


18


.




Referring to

FIG. 18

, in a first step S


61


, the controller


11


reads the cylinder intake air amount Qc.




In a step S


62


, according to the cylinder intake air amount Qc, the elements a


1


and a


0


of system matrix mat A and the elements b


1


and b


0


of the input matrix mat B are determined.




The dynamic characteristic of the air-fuel ratio of an engine has a strong nonlinear nature depending on the operation range of the engine.




Accordingly, a single dynamic characteristic model cannot represent the dynamic characteristic of the engine for all the operation ranges. The system matrix mat A and the input matrix mat B vary according to the operation range, and the state equation of the plant model of the secondary discrete system will also be different according to the operation range.




In order to cope properly with such a condition, the operation range of the engine


1


is divided into eight ranges according to the cylinder intake air amount Qc, and the values of the elements a


1


, a


0


, b


1


, and b


0


matching with the respective operation ranges are previously determined and prestored in the memory of the controller


11


.




When the engine


1


operates, the controller


11


, in the step S


62


, first determines the operation range according to the cylinder intake amount Qc calculated in the step S


61


, and then selects a set of the elements a


1


, a


0


, b


1


, and b


0


which corresponds to the determined operation range #1-#8.




For example, when the cylinder intake air amount Qc is a value between Qc1 and Qc2, the controller


11


determines that the operation range corresponds to a range #2, and sets the values of the elements a


1


, a


0


, b


1


, and b


0


equal to those prestored for the range #2.




In a step S


63


, the controller


11


calculates the model dead time d


M


by searching a map as shown in the figure based on the cylinder intake air amount Qc.




The model dead time d


M


has such a characteristic that it takes a larger value as the cylinder intake amount Qc becomes smaller.




The dead time from when the fuel injection amount varies until when the resultant change in the air-fuel ratio is detected by the upstream air-fuel ratio sensor


16


depends on the flow velocity of cylinder intake air, and is large when the flow velocity is small.




Accordingly, a single model dead time cannot cover the whole flow velocity range of the cylinder intake air.




In order to set the optimal model dead time, therefore, different values are assigned for the model dead time d


M


according to the cylinder intake air amount Qc.




After performing the processing of the step S


63


, the controller terminates the subroutine.




Referring again to

FIG. 17

, after calculating the system-matrix mat A, the input matrix mat B, and the model dead time d


M


of the plant model in the step S


53


, the controller


11


calculates the air-fuel ratio CYLAF of the air-fuel mixture in the combustion chamber


1


A in a step S


54


.




In this calculation, the controller


11


first calculates a fuel injection pulse width TIPSCYL by the following equation (53).








TIPSCYL=TP·TFBYA·


(


ALPHA+KBLRC−


1)  (53)






where,




TP=basic fuel injection pulse width,




TFBYA=target equivalence ratio,




ALPHA=air-fuel ratio feedback correction value, and




KBLRC=air-fuel ratio learning value.




The air-fuel ratio feedback correction value ALPHA used by the equation (53) is a value obtained by the immediately preceding execution of the routine of FIG.


7


.




As for the air-fuel ratio learning value KBLRC, also the newest value available at the time of the execution of this subroutine is applied.




The air-fuel ratio learning value KBLRC is a value calculated based on the air-fuel ratio feedback correction value ALPHA. The calculation method of the air-fuel ratio learning value KBLRC is disclosed by U.S. Pat. No. 6,014,962.




Using the air-fuel ratio feedback correction value ALPHA and the air-fuel ratio learning value KBLRC for the calculation of the fuel injection pulse width TIPSCYL is based on the following reason.




There is an individual difference in the upstream air-fuel ratio sensor


16


or the fuel injector


5


which are a part of the controlled plant.




If the fuel injection pulse width TIPSCYL is calculated from a value which has not been corrected by the air-fuel ratio feedback correction value ALPHA and the air-fuel ratio learning value KBLRC, an error due to the individual difference of the upstream air-fuel ratio sensor


16


or the fuel injector


5


will be incorporated into the state equation of the plant model.




Applying the air-fuel ratio feedback correction value ALPHA and the air-fuel ratio learning value KBLRC for the calculation of the fuel injection pulse width TIPSCYL prevents such an error from being incorporated into the state equation of the plant model, even when there is an individual difference in the upstream air-fuel ratio sensor


16


or in the fuel injector


5


.




The controller


11


calculates a fuel injection amount Fc by the following equation (54).









Fc
=

TIPSCYL

KCONST

#






(
54
)













where,




Fc=fuel injection amount (kilogram/cycle),




TIPSCYL=fuel injection pulse width (millisecond/kilogram), and




KCONST#=constant (millisecond/kilogram).




An excess air factor λcyl is expressed by the following equation (55).










λ





cyl

=

Qc

Fc
·
14.7






(
55
)













Accordingly, the air-fuel ratio CYLAF of the air-fuel mixture in the combustion chamber


1


A is expressed by the following equation (56).









CYLAF
=


Qc
Fc

=

λ






cyl
·
14.7







(
56
)













The cylinder intake air amount Qc is the value calculated by the equation (52), and the fuel injection amount Fc is the value calculated by the equation (54).




The above-mentioned equation (27) is obtained by substituting the equation (52) and the equation (54) for the equation (55).




Referring back to

FIG. 17

, in a step S


55


, the controller


11


sets the input u(n) equal to the air-fuel ratio CYLAF of the air-fuel mixture in the combustion chamber


1


A.




In a following step S


56


, the controller


11


calculates the state quantities x


1M


(n) and x


2M


(n) of the plant model by the equation (41) using the input u(n), the system-matrix mat A, and the input matrix mat B. The state variable mat x


M


(n) of the plant model is fixed according to the state quantities x


1M


(n) and x


2M


(n).




In a following step S


57


, the controller


11


calculates the estimated state quantities {circumflex over (x)}


1


(n) and {circumflex over (x)}


2


(n) from the state variable mat x(n) of the controlled plant, the state variable mat x


M


(n) of the plant model, and the model dead time d


M


by the equations (49) and (50).




The estimated state variable mat {circumflex over (x)}


1


(n) is fixed according to the estimated state quantities {circumflex over (x)}


1


(n) and {circumflex over (x)}


2


(n).




After the processing of the step S


57


, the controller


11


terminates the routine.




The step S


53


corresponds to the function of the model schedule unit


33


of FIG.


14


. The steps S


54


and S


55


correspond to the function of the cylinder intake air-fuel ratio calculation unit


32


of FIG.


14


. The step S


56


corresponds to the function of the plant-model state-variable calculation unit


34


of FIG.


14


. The step S


57


corresponds to the function of the estimated state variable calculation unit


35


of FIG.


14


.




The processing in the state estimation unit


31


is described below based on the state quantities in a practical manner.




The plant-model state-variable calculation unit


34


calculates a model air-fuel ratio which is an air-fuel ratio on the present occasion (n) matching with the present engine operation range, from the air-fuel ratio CYLAF of the air-fuel mixture in the combustion chamber


1


A, which corresponds to the input u(n) of the plant model on the present occasion (n).




The estimated state variable calculation unit


35


calculates an estimated air-fuel ratio to be measured by the upstream air-fuel ratio sensor


16


in the upstream of the catalytic converter


7


after the model dead time d


M


from the present occasion (n), from the model air-fuel ratio CYLAF, and the air-fuel ratio detected by the air-fuel ratio sensor


16


on the present occasion (n) by applying the aforesaid combination of the Smith dead time compensation and disturbance compensation shown in FIG.


16


.




Upon input of the estimated air-fuel ratio from the estimated state variable calculation unit


35


, the switching function calculation unit


23


of the sliding mode control unit


22


calculates the switching function of the present occasion (n) based on the estimated air-fuel ratio and the target air-fuel ratio TGABF by the following equation (57) which replaces the aforesaid equation (8).






σ(


n


)=


S




1




·{{circumflex over (x)}




1


(


n


)−θ


1


(


n


)}+


S




2




{{circumflex over (x)}




2


(


n


)−θ


2


(


n


)}0  (57)






where,




σ(n)=state quantity,




S


1


=element of the switching function gain mat S, and




S


2


=element of the switching function gain mat S




The linear input calculation unit


25


of the sliding mode control unit


22


calculates the linear input by the following equations (58) and (59) instead of the aforesaid equation (12).








mat u




eq


(


n


)=−(


mat S·mat B


)


−1




mat S·{mat A mat {circumflex over (x)}


(


n


)−


mat θ


(


n+


1)}−σ(


n


)  (58)






The following equation (59) is obtained by rewriting the equation (58) using scalar values given by the equations (48) and (57).














u
eq



(
n
)


=







(



S
1

·

b
1


+


S
2

·

b
0



)


-
1


·

(



a
1

·

S
1


+


a
0

·

S
2


+


S
1
2


S
2



)

·












{




x
^

1



(
n
)


-


θ
1



(
n
)



}








(
59
)













When the operation range of the engine


1


varies from a range with a small model dead time d


M


to a range with a large model dead time d


M


, the error in the estimated state quantity {circumflex over (x)}


2


(n) will increase.




Specifically, it has been experimentally proved that, if a delay compensation based on a large model dead time d


M


is applied to the air-fuel ratio that was calculated based on the fuel injection amount in the range with a small model dead time d


M


, the air-fuel ratio will fluctuate. This phenomenon will further be described below.




The state quantity x


2


(n) and its target value θ


2


(n) of the controlled plant, and the state quantity x


2M


(n) and the estimated state quantity {circumflex over (x)}


2


(n) of the plant model have the relation specified by the following equations (60)-(63).






θ


2


(


n


)=−


a




0


·θ(


n


)+


b




0




·u


(


n−d




M


−1)  (60)










x




2


(


n


)=−


a




0




x




1


(


n−


1)+


b




0




·u


(


n−d




M


−1)  (61)










x




2M


(


n


)=−


a




0




x




1M


(


n−


1)+


b




0




·u


(


n−


1)  (62)










{circumflex over (x)}




2


(


n


)=


x




2


(


n+d




M


)=


x




2


(


n


)−


x




2M


(


n−d




M


)+


x




2M


(


n


)  (63)






The equations (60)-(62) are obtained as follows.




Since y(n)=x


1


(n) holds from the equation (40), the target output value θ


1


(n) is also the target value of the state quantity x


1


(n). By expanding the equation (39), the following equations (64) and (65) are obtained.








x




1


(


n+


1)=−


a




1




·x




1


(


n


)+


x




2


(


n


)+


b




1




·u


(


n−d


)  (64)










x




2


(


n+


1)=−


a




0




·x




1


(


n


)+


b




0




·u


(


n−d


)  (65)






In the equation (65), if n+1 is replaced by n, the following equation (66) will be obtained.








x




2


(


n


)=−


a




0




·x




1


(


n−


1)+


b




0




·u


(


n−


1−


d


)  (66)






The equation (66) differs from the equation (62) in that x


2


(n) includes dead time while x


2M


(n) does not include dead time.




In other words, the equation (62) is obtained by eliminating the dead time d form the equation (66).




The target value of the state quantity x


2


(n) is expressed by the following equation (67) in view of the equation (65).






θ


2


(


n+


1)=−


a




0


·θ


1


(


n


)+


b




0




·u


(


n−d


)  (67)






If n+1 is replaced by n in the above equation (67) the following equation (68) will be obtained.






θ


2


(


n


)=−


a




0


·θ


1


(


n−


1)+


b




0




·u


(


n−d−


1)  (68)






Since the relation θ


1


(n)=θ


1


(n−1) holds, the following equation (60) is obtained from the equation (68).





FIGS. 19A-19G

show an example where the model dead time d


M


varies from two to three due to the reduction of the cylinder intake air amount Qc, and the target value thets


2


(n) of the state quantity decreases accordingly. It is assumed that the input u(n) of the plant model does not change.




In this case, in accordance with the reduction of the target value θ


2


(n), both the state quantities x


2


(n) and x


2M


(n) decrease.




The estimated state quantity {circumflex over (x)}


2


(n) is calculated at the timing when the model dead time d


M


changes from two to three by the following equation (69) that is obtained from the equation (63).








{circumflex over (x)}




2


(


n


)=


x




2


(


n


)−


x




2M


(


n−


3)+


x




2M


(


n


)  (69)






The equation (69) estimates, in the present cycle n, a state quantity x


2


(n+3) of a cycle n+3.




It is assumed that the state quantities x


2


(n) and x


2M


(n) decrease from three to unity in the present cycle n as shown in

FIGS. 19D and 19E

.




Accordingly, both the state quantities x


2


(n) and x


2M


(n) are unity in the present cycle n. The state quantity x


2M


(n−3) is a state quantity of the cycle n−3 and is equal to three. Therefore, the equation (69) in the present cycle n is calculated as follows.








{circumflex over (x)}




2


(


n


)=1−3+1=−1  (70)






This value of the estimated state quantity {circumflex over (x)}


2


(n) is smaller than the state quantity x


2


(n).




As shown in

FIG. 19G

, the state where the estimated state quantity {circumflex over (x)}


2


(n) is equal to negative unity continues until just before the cycle n+3, and the estimated state quantity x


2


(n) becomes unity which is identical to the value of the state quantity x


2


(n) in the cycle n+3.




However, {circumflex over (x)}


2


(n) which is an estimated value of the state quantity is preferably equal to unity during the period from the cycle n to the cycle n+3 as shown by a dotted line in FIG.


19


G. In other words, if the equation (63) is applied in this section to calculate the estimated state quantity {circumflex over (x)}


2


(n), an error will be generated. This error is hereinafter referred to as a model error.




In order to avoid the generation of the model error, the controller


11


prevents the equation (63) from being applied in the calculation of the estimated state quantity {circumflex over (x)}


2


(n+d


M


) until the model dead time d


M


has elapsed after the increase of the model dead time d


M


, and sets the {circumflex over (x)}


2


(n+d


M


) equal to the state quantity x


2


(n). It can be said that the controller


11


prevents the compensation of disturbance and dead time from being applied to the air-fuel ratio control during this period.




The controller


11


preforms the above processing in the step S


57


using a subroutine of FIG.


20


.




Referring to

FIG. 20

, in a step S


71


, the controller


11


first reads the model dead time d


M


that was found in the step S


63


of the subroutine of FIG.


18


.




In a following step S


72


, the controller determines if the model dead time d


M


is larger than the value that was applied in the immediately preceding occasion when the subroutine was executed.




If the model dead time d


M


is larger than the immediately preceding value, the controller


11


, in a step S


73


, sets the estimated state variable mat {circumflex over (x)}(n) to be equal to the state variable mat x(n). In other words, the estimated state quantity {circumflex over (x)}


2


(n) is set equal to the state quantity x


2


(n).




If the model dead time d


M


not larger than the immediately preceding value, the controller


11


, in a step S


74


, determines if the elapsed time after the model dead time d


M


increase is larger than the model dead time d


M


.




In other words, the controller


11


determines if the present occasion corresponds to the model error generation period of FIG.


19


G.




If the elapsed time does not reach the model dead time d


M


, the controller preforms the processing of the step S


73


to maintain the estimated state variable mat {circumflex over (x)}(n) to be equal to the state variable mat x(n).




If the elapsed time has reached the model dead time d


M


, the controller


11


calculates the estimated state variable mat {circumflex over (x)}(n) by applying the aforesaid combination of the Smith dead time compensation and disturbance compensation by the equation (63).




After the processing of the step S


73


or step S


75


, the controller


11


terminates the subroutine.




The above air-fuel ratio control according to this invention is summarized as follows.




The controller


11


compensates the dead time from when the air-fuel ratio is determined by the fuel injection until it is detected by the upstream air-fuel ratio sensor


16


, by applying the combination of the Smith dead time compensation and disturbance compensation. The controller


11


then feedback controls the fuel injection amount through the sliding mode control process such that the air-fuel ratio after compensation is equal to the target air-fuel ratio.




The state estimation unit


31


approximates the dynamic characteristic of the exhaust gas flow of the engine


1


and that of the upstream air-fuel ratio sensor


16


by the transfer function of a secondary discrete system which has dead time. The transfer function is identified by the application of an ARX model.




Due to this process, the transfer function of the secondary discrete system with dead time is converted to the state equations that represent the controlled plant.




On the other hand, the dynamic characteristic of the exhaust gas flow of an imaginative engine without dead time and that of an imaginative upstream air-fuel ratio sensor without dead time are approximated by the transfer function of a secondary discrete system without dead time. The transfer function is identified by the application of an ARX model.




Due to this process, the transfer function of the secondary discrete system without dead time is converted to the state equations that represent the plant model. Furthermore, a state equation to which the Smith dead time compensation and disturbance compensation are applied is obtained based on the state variable mat x(n) representing the controlled plant with dead time, the state variable mat x


M


(n) representing the plant model without dead time, and the model dead time d


M


.




The sliding mode control unit


22


calculates the difference between the estimated state variable mat {circumflex over (x)}(n) and the target value mat θ(n) of the state variable as the state quantity mat e(n) of the error. Then it multiplies the state quantity mat e(n) of the error by the switching function gain mat S to obtain the state quantity σ(n) of the switching function.




Based on the state quantity σ(n) of the switching function, the sliding mode control unit


22


calculates the nonlinear input u


nl


(n) and the linear input u


eq


(n), and it finally calculates the total control input u


sl


(n) by adding an integrated value of the linear input u


eq


(n) to the nonlinear input u


nl


(n). The fuel injection amount of the fuel injector


5


is controlled according to the total control input u


sl


(n).




Due to the above air-fuel control process according to this invention, in the air-fuel ratio control of the engine


1


which has dead time, the air-fuel ratio does not fluctuate even when the feedback gain is increased, so the feedback gain can be increased even in a range near the idle operation range of the engine


1


where the intake air amount is small and the dead time largely affects the air-fuel ratio control.




Although the individual difference in the performance of the fuel injector


5


or in the upstream air-fuel ratio sensor


16


brings an error to air-fuel ratio control, the effect of such an individual difference is eliminated by calculating the fuel injection pulse width TIPSCYL using the air-fuel ratio feedback correction value ALPHA and the learning value KBLRC thereof.




The dynamic characteristic of an air-fuel ratio varies with an engine load and engine rotation speed, and a large error will be generated, if a single state equation is applied over the whole operation ranges of the engine


1


.




The air-fuel ratio control according to this invention selectively applies a state equation of the secondary discrete plant model without dead time from among the plural equations set according to cylinder intake air amount Qc that represents the engine load and engine rotation speed.




Therefore, in all operation ranges, the optimal state equation of the secondary discrete plant model without dead time can be used.




As a result, even when performing air-fuel ratio feedback control at a fixed time interval, a desirable control response is realized all over the operating range irrespective of the number of combustions per unit time of the engine


1


.




Since the controller


11


according to this invention calculates the model dead time d


M


according to the cylinder intake air amount Qc, the model dead time d


M


is quite close to the real dead time incorporated in the air-fuel ratio control of the engine


1


.




If Smith method for dead time compensation is applied when the model dead time d


M


has increased, the air-fuel ratio feedback correction amount may be excessively large and the air-fuel ratio may fluctuates as a result.




The controller


11


according to this invention prevents Smith dead time compensation and the disturbance compensation from being performed from when the model dead time d


M


is increased until when the elapsed time after the increase of the model dead time d


M


reaches the increased model dead time d


M


.




Therefore, even when the model dead time d


M


increases, the air-fuel ratio fluctuation due to excessive feedback correction will not occur.




Next, a third embodiment of this invention will be described referring to

FIGS. 21A-23

.




In the equation (65), the relation between the state quantities x


1


(n) and x


2


(n) is complex, and if the input u(n) is not determined, the state quantity x


2


(n) cannot be calculated. As a result, the construction of the switching function is necessarily as shown in the equation (8), and the physical significance of the state quantity x


2


(n) is not well-defined.




The state amount σ(n) of the discrete model switching function shown by the equation (8) may be written also by the following equation (71).






σ(


n


)=


S




1




·{x




1


(


n


)−θ


1


(


n


)}−{


x




1


(


n−


1)−θ


1


(


n−


1)}  (71)






This equation (71) is deduced by the following method.




Specifically, substituting the equation (66) and the equation (68) in the equation (8), the following equation (72) is obtained:













σ


(
n
)


=







S
1

·

{



x
1



(
n
)


-


θ
1



(
n
)



}


+


S
2

·

{



x
2



(
n
)


-


θ
2



(
n
)



}









=







S
1

·

{



x
1



(
n
)


-


θ
1



(
n
)



}


+


S
2

·

{



-

a
0


·


x
1



(

n
-
1

)



+


b
0

·


















u


(

n
-
d
-
1

)


+


a
0

·


θ
1



(

n
-
1

)



-


b
0

·

u


(

n
-
d
-
1

)




}







=







S
1

·

{



x
1



(
n
)


-


θ
1



(
n
)



}


-


a
0

·

S
2

·

{



x
1



(

n
-
1

)


-


θ
1



(

n
-
1

)



}









=








S
1



a
0

·

S
2



·

{



x
1



(
n
)


-


θ
1



(
n
)



}


-

{



x
1



(

n
-
1

)


-


θ
1



(

n
-
1

)



}









(
72
)













If







S
1



a
0

·

S
2












of the equation (72) is redefined as S


1


, the equation (71) is obtained.




When the state amount σ(n) is defined by the equation (71), when the target value θ


1


(n) varies, the state quantity σ(n) varies so that it generates a deviation between the real value and target value of the first and second terms on the right-hand side of the equation (71).




The right-hand side of the equation (71) is in the form of a difference so as to vary the sign of the state quantity σ(n) before the state quantity σ(n) reaches the target value θ


1


(n), and as a result, the state quantity σ(n) does not become a very large value even if the difference between the real value and target value is large. Also, the element S


1


of the switching function gain mat S is determined by the response performance, and it cannot be set to a value larger than necessary.




Consequently, if the air fuel ratio control amount u


sl


(n) is determined according to the state quantity σ(n), the variation of the air-fuel ratio feedback correction value ALPHA when the target value θ


1


(n) begins to vary is insufficient, as shown in

FIGS. 21A

,


21


B.




In other words, as the output mat y


1


(n) and state quantity mat x


1


(n) are set to coincide as shown in the equations (5) and (6), the state quantity x


2


(n) cannot be given a physical significance, and it is difficult to physically describe the function of the state quantity x


2


(n). Consequently, the design of the switching function is not optimum, and tracking to the target value θ


1


(n) is relatively slow as shown by the solid lines of

FIGS. 21A and 1B

.




To further improve the response according to the second embodiment of this invention, this embodiment has the following structure.




With respect to a controlled plant having dead time where the relations of the following equations (73) and (74) are satisfied, and a plant model without dead time, the elements of the system matrix, the elements of the input matrix and the elements of the output matrix are rearranged.











x
1



(
n
)


=

AFSAF


b
0

+

b
1







(
73
)












x




2


(


n


)=


x




1


(


n−


1)  (74)




The inventors discovered that, by applying the following equations (75) and (76) instead of the equations (39) and (40) which are secondary discrete state equations relating to a controlled plant with dead time, applying the following equations (77) and (78) instead of the equations (41) and (42) which are secondary discrete state equations relating to a plant model without dead time, and applying the equation (82) instead of the equation (8) to calculate the state quantity σ(n) of the discrete model switching function, the equation (74) is satisfied:




(i) State Equation for Controlled Plant Having Dead Time:








mat x


(


n+


1)=


mat D·mat x


(


n


)+


mat E·u


(


n−d


)  (75)










mat y


(


n


)=


mat F·mat x


(


n


)  (76)






where,




mat x(n)=state variable of the controlled plant,




mat y(n)=output of the controlled plant,




mat D=system matrix of the controlled plant,




mat E=input matrix of the controlled plant,




mat F=output matrix of the controlled plant, and




d=dead time of the controlled plant.




(ii) State Equation of Plant Model Without Dead Time:








mat x




M


(


n+


1)=


mat D·mat x




M


(


n


)+


mat E·u


(


n−d


)  (77)










mat y




M


(


n


)=


mat F·mat x




M


(


n


)  (78)






where,




mat x


M


(n)=state variable of the plant model,




mat y


M


(n)=output of the plant model,




mat D=system matrix of the plant model,




mat E=input matrix of the plant model, and




mat F=output matrix of the plant model.




In the equations (75)-(78), the system matrix mat D, input matrix mat E and output matrix mat F are defined by the following equations (79)-(81).










mat





D

=

[




-

a
1





-

a
0






1


0



]





(
79
)







mat





E

=

[



1




0



]





(
80
)












mat F=[b




1




b




o


]  (81)




The state quantity σ(n) of the discrete model switching function is defined by the following equation (82).













σ


(
n
)


=





mat






S
·
mat







e


(
n
)









=







[








S
1



1







]

·
mat







e


(
n
)









=







S
1

·

{



x
1



(
n
)


-


θ
1



(
n
)



}


+

{



x
1



(
n
)


-


x
2



(
n
)



}









(
82
)













where,




mat S=switching function gain,




S


1


, 1=elements of the switching function gain S, and




θ


1


(n)=target value of x


1


(n).




The variation of the state quantity of the error in the sliding mode control process due to this setting is shown in FIG.


22


. This figure corresponds to

FIG. 5

of the first embodiment. Substituting the above equation (74) into x


2


(n) on the right-hand side of the equation (82), the following equation (83) representing the switching function on the present occasion n is obtained.






σ(


n


)=


S




1




·{x




1


(


n


)−θ


1


(


n


)}+{


x




1


(


n


)−


x




1


(


n−


1)}=0  (83)






The first term on the right-hand side of the equation (83) represents the difference between the state quantity x


1


(n) and its target value θ(n), and the second term on the right-hand side represents the differential value of the state quantity x


1


(n) or variation thereof per control period. If θ(n)=0 is satisfied, it signifies that the difference and the differential value are both zero. If the difference is zero, it signifies that the target value θ


1


(n) of the state quantity x


1


(n) has been reached, and if the differential value is zero, it signifies that the state quantity x


1


(n) has been kept at the target value θ


1


(n).




Therefore, by applying the equation (82), the switching function has desired dynamic characteristics which make the state quantity x


1


(n) converge to the target value θ


1


(n).




The switching function is designed to optimize the state, hence by setting the equation (74), as the physical significance of the state quantity x


2


(n) is clarified, the setting of the switching function can be performed in this way.




Further, according to this embodiment, the equation (84) is used instead of the equation (11).













Δ





σ






(

n
+
1

)


=






σ


(

n
+
1

)


-

σ


(
n
)









=






mat






S
·

[









mat






x


(

n
+
1

)



-

mat






θ


(

n
+
1

)










mat






x


(

n
+
1

)



-

mat






x


(
n
)











]



-

σ


(
n
)









=






mat






S
·

[









mat






D
·
mat







x


(
n
)



+

mat






E
·
mat








u
eq



(
n
)



-

mat






θ


(

n
+
1

)










mat






D
·
mat







x


(
n
)



+

mat






E
·
mat








u
eq



(
n
)



-

mat






x


(
n
)











]



-

σ


(
n
)










(
84
)













In the equation (84), if det (mat S·mat E)


−1


≠0, the linear input u


eq


(n), i.e., the equivalent control input of this system is represented by the following equation (85) using scalar values.














u
eq



(
n
)


=






(


b
1

+

b
0


)

·

[



a
1

·


x
1



(
n
)



+


a
0

·


x
2



(
n
)



-


(


a
0

+

a
1


)

·


θ
1



(
n
)



+

















(


S
1

+
1

)


-
1


·

{



x
1



(
n
)


-


θ
1



(
n
)



}


]








(
85
)













The purpose of the non-linear input u


nl


(n) is to move the error state quantity mat e(n) towards the straight line of the switching function, and it is required to suppress chattering to the minimum. Chattering has a close relation to the distance between the switching function θ(n)=mat S·mat e(n)=0, and the state quantity mat e(n) of the error. Hence, according to this embodiment, the smoothing function shown in

FIG. 23

is introduced. The non-linear input in the case of one input is defined by the following equation (86).










u
nl

=



-
η

·

sgn




[

σ


(
n
)


]


=

η




·


σ


(
n
)



&LeftBracketingBar;

σ


(
n
)


&RightBracketingBar;








(
86
)













Applying the smoothing function of

FIG. 23

to the equation (86), the following equation (87) is obtained.











u
nl



(
n
)


=


-
η

·


σ


(
n
)




&LeftBracketingBar;

σ


(
n
)


&RightBracketingBar;

+
δ







(
87
)













where,




η=non-linear gain, and




δ=smoothing constant >0.




Due to the non-linear input u


nl


(n) calculated in the equation (21) of the first embodiment, chattering can be prevented, but the response cannot be set very high as described above. On the other hand, due to the non-linear input u


nl


(n) calculated in the equation (86), chattering tends to occur in the response. If the equation (87) is applied, the response is high while chattering does not easily occur, which are desirable characteristics.




According to the equation (87), a correction amount according to the positive or negative sign of the state quantity σ(n) can be obtained without using the sign function. Therefore, the construction of the equation (87) is simple compared to that of the equation (21).




According also to this embodiment, as in the case of the first embodiment, the controller


11


performs the routine for calculating the air-fuel ratio feedback correction value ALPHA shown in FIG.


7


. However, in this embodiment, the calculation equations used in the processing of each step are different.




The processing of the steps S


11


and S


12


is identical to that of the first embodiment.




In the step S


13


, the state quantities x


1


, x


2


are calculated using the equations (73) and (74) instead of the equations (5) and (6) of the first embodiment.




In the step S


14


, the elements S


1


, S


2


of the switching function gain mat S are determined by the equation (29) as in the case of the first embodiment. The element S


2


is herein set equal to unity.




In the step S


15


, the nonlinear input u


nl


(n) is calculated by the equation (87) instead of the equation (21) of the first embodiment.




In the step S


16


, the linear input u


eq


(n) is calculated by the equation (85) instead of the equation (13) of the first embodiment.




The calculations of the steps S


17


-S


21


are identical to those of the first embodiment.




Summarizing the features of this embodiment, the system matrix mat D, input matrix mat E and output matrix mat F of the state equations (75)-(78) are rearranged so that the state quantities x


1


(n), x


2


(n) satisfy the equations (73) and (74), and the physical significance of the state quantity x


2


(n) is clarified by defining these matrices by the equations (79)-(81). Specifically, according to this embodiment, the state quantity x


2


(n) represents the immediately preceding value of the state quantity x


1


(n).




According to this embodiment, regarding also the c switching function, desirable dynamic characteristics of the state quantity x


1


(n) are obtained by applying the equation (82).




For example, the broken lines in

FIGS. 21A

, and


21


B show the air-fuel ratio response according to this embodiment when the target value θ


1


(n) of the air-fuel ratio is varied in stepwise fashion from 14.7 which is the stoichiometric air-fuel ratio to 16, which is a lean air-fuel ratio.




According to this embodiment, the response of the state quantity x


1


(n) is more rapid and the response of the air-fuel ratio feedback correction value ALPHA is more rapid than those of the second embodiment. Therefore, even if the target value θ


1


(n) of the air-fuel ratio varies, the real air-fuel ratio converges to a new target value in a short time.




The contents of Tokugan 2001-211571 with a filing date of Jul. 12, 2001 in Japan, Tokugan 2001-224162 with a filing date of Jul. 25, 2001 in Japan, and Tokugan 2002-110508 with a filing date of Apr. 12, 2002 in Japan are hereby incorporated by reference.




Although the invention has been described above by reference to certain embodiments of the invention, the invention is not limited to the embodiments described above. Modifications and variations of the embodiments described above will occur to those skilled in the art, in light of the above teachings.




For example, the above embodiments relate to air-fuel ratio control using two input, two output state equations, but this invention may also be applied to air-fuel ratio control using other state equations.




According to the above embodiments, the target air-fuel ratio was varied, but this invention may also be applied to an engine wherein the target air-fuel ratio is fixed, i.e., to an engine wherein air-fuel ratio feedback control is performed by fixing the target air-fuel ratio to the stoichiometric air-fuel ratio, for example.




The embodiments of this invention in which an exclusive property or privilege is claimed are defined as follows:



Claims
  • 1. An air-fuel ratio control device for an engine with a combustion chamber for burning a mixture of air and fuel, comprising:means for regulating an air-fuel ratio of the mixture; means for detecting the air-fuel ratio of the mixture from a composition of an exhaust gas of the engine; means for calculating a state quantity (σ(n)) of a switching function based on a preset target air-fuel ratio (TGABF), a detected air-fuel ratio (AFSAF) detected by the detecting means, a state equation derived from a transfer function (Geng(q)) of a secondary discrete system representing the correlation between the air-fuel ratio of the mixture in the combustion chamber and the detected air-fuel ratio, and a predetermined switching function gain mat (S); means for calculating a non-linear input (unl(n)) for a sliding mode control process based on the state quantity (σ(n)) of the switching function, the predetermined switching function gain mat (S), a predetermined non-linear gain (η) and a predetermined disturbance input (β(n)); means for calculating a linear input (ueq(n)) for the sliding mode control process based on a difference between the target air-fuel ratio (TGABF) and the detected air-fuel ratio (AFSAF), and the switching function gain mat (S); means for calculating an air-fuel ratio feedback correction value (ALPHA) from the non-linear input (unl(n)) and the linear input (ueq(n)); and means for feedback controlling the air-fuel ratio regulating means based on the air-fuel ratio feedback correction value (ALPHA).
  • 2. An air-fuel ratio control device for an engine with a combustion chamber for burning a mixture of air and fuel, comprising:a mechanism which regulates an air-fuel ratio of the mixture; an air-fuel ratio sensor which detects the air-fuel ratio of the mixture from a composition of an exhaust gas of the engine; and a programmable controller programmed to: calculate a state quantity (σ(n)) of a switching function based on a preset target air-fuel ratio (TGABF), a detected air-fuel ratio (AFSAF) detected by the sensor, a state equation derived from a transfer function (Geng(q)) of a secondary discrete system representing the correlation between the air-fuel ratio of the mixture in the combustion chamber and the detected air-fuel ratio, and a predetermined switching function gain mat (S); calculate a non-linear input (unl(n)) for a sliding mode control process based on the state quantity (σ(n)) of the switching function, the predetermined switching function gain mat (S), a predetermined non-linear gain (η) and a predetermined disturbance input (β(n)); calculate a linear input (ueq(n)) for the sliding mode control process based on a difference between the target air-fuel ratio (TGABF) and the detected air-fuel ratio (AFSAF), and the switching function gain mat (S); calculate an air-fuel ratio feedback correction value (ALPHA) from the non-linear input (unl(n)) and the linear input (ueq(n)); and feedback control the air-fuel ratio regulating mechanism based on the air-fuel ratio feedback correction value (ALPHA).
  • 3. The air-fuel ratio control device as defined in claim 2, wherein the air-fuel ratio regulating mechanism comprises a fuel injector which injects fuel into the combustion chamber, and the controller is further programmed to feedback control the air-fuel ratio by correcting a fuel injection amount of the fuel injector.
  • 4. The air-fuel ratio control device as defined in claim 2, wherein the controller is further programmed to calculate a state quantity mat (e(n)) of an error for the sliding mode control process from the target air-fuel ratio (TGABF), the detected air-fuel ratio (AFSAF) and the transfer function (Geng(q)), and calculate the state quantity (σ(n)) of the switching function by multiplying the state quantity mat (e(n)) of the error by the switching function gain mat (S).
  • 5. The air-fuel ratio control device as defined in claim 2, wherein the controller is further programmed to calculate an integral value of the linear input (ueq(n)), and calculate the air-fuel ratio feedback correction value (ALPHA) based on the sum of the non-linear input (unl(n)) and the integral of the linear input (ueq(n)).
  • 6. The air-fuel ratio control device as defined in claim 5, wherein the controller is further programmed to set the switching function gain mat (S) based on an integral gain (μ) applied to a calculation of the integral of the linear input (ueq(n)).
  • 7. The air-fuel ratio control device as defined in claim 6, wherein the device further comprises a sensor which detects a rotation speed of the engine, and the controller is further programmed to determine the integral gain based on the rotation speed of the engine.
  • 8. The air-fuel ratio control device as defined in claim 2, wherein the transfer function (Geng(q)) is defined by the following equation (A): Geng⁡(q)=b1·q+b0q2+a1·q+a0(A)where, q=discrete shift operator, a1, a0=differential coefficients, and b1, b0=differential coefficients.
  • 9. The air-fuel ratio control device as defined in claim 8, wherein the transfer function (Geng(q)) is described by the following state equations (B) and (C):mat (x(n+1))=mat (A)·mat (x(n))+mat (B)·u(n)  (B) mat (y(n))=mat (C)·mat (x(n))  (C) where mat⁢ ⁢(A)=system⁢ ⁢matrix=[ ⁢-a11-a00⁢ ]mat⁢ ⁢(B)=input⁢ ⁢matrix=[ ⁢b1b0⁢ ],mat (C)=output matrix=[1 0], mat (x(n+1))=state variable at time (n+1) mat (x(n))=state variable at time (n) mat (y(n))=output at time (n), and u(n)=input at time (n).
  • 10. The air-fuel ratio control device as defined in claim 9, wherein the controller is further programmed to set an element (S2) of the switching function gain mat (S) to unity when the differential coefficient (a0) is a positive value, and set the element (S2) to negative unity when the differential coefficient (a0) is a negative value.
  • 11. The air-fuel ratio control device as defined in claim 8, wherein the device further comprises a sensor which detects an operation state of the engine, and the controller is further programmed to set the differential coefficients (a1), (a0) and the differential coefficients (b1), (b0) according to the drive state.
  • 12. The air-fuel ratio control device as defined in claim 8, wherein the transfer function (Geng(q)) is described by the following state equations (D) and (E):mat (x(n+1))=mat (A)·mat (x(n))+mat (B)·u(n)  (D) mat (y(n))=mat (C)·mat (x(n))  (E) where, mat⁢ ⁢(A)=system⁢ ⁢matrix=[ ⁢-a11-a00⁢ ]mat⁢ ⁢(B)=input⁢ ⁢matrix=[ ⁢b1b0⁢ ],mat (x(n+1))=state variable at time (n+1), mat (x(n))=state variable at time (n), mat (y(n))=output at time (n), and u(n)=input at time (n).
  • 13. The air-fuel ratio control device as defined in claim 12, wherein the controller is further programmed to calculate the state quantity (σ(n)) of the switching function by the following equations (F) and (G):σ(n)=S1·{x1(n)−θ1(n)}+{x1(n)−x2(n)}  (F) mat (S)=[S11]  (G) where, mat (S)=switching function gain, S1=element of the switching function gain, x1(n), x2(n)=elements of the state variable mat (x(n)), and θ1(n)=target value of x1(n).
  • 14. The air-fuel ratio control device as defined in claim 13, wherein the controller is further programmed to calculate the linear input (ueq(n)) by the following equation (H): ueq⁡(n)= ⁢(b1+b0)·[a1·x1⁡(n)+a0·x2⁡(n)-(a1+a0)·θ1⁡(n)+ ⁢(S1+1)-1·{x1⁡(n)-θ1⁡(n)}].(H)
  • 15. The air-fuel ratio control device as defined in claim 13, wherein the controller is further programmed to calculate the nonlinear input (unl(n)) by the following equation (I): unl⁡(n)=-η·σ⁡(n)&LeftBracketingBar;σ⁡(n)&RightBracketingBar;+δ(I)where, η=nonlinear gain, and δ=smoothing constant>0.
  • 16. An air-fuel ratio control method for an engine with a combustion chamber for burning a mixture of air and fuel, the engine comprising a mechanism which regulates an air-fuel ratio of the mixture, the method comprising:detecting the air-fuel ratio of the mixture from a composition of an exhaust gas of the engine; calculating a state quantity (σ(n)) of a switching function based on a preset target air-fuel ratio (TGABF), a detected air-fuel ratio (AFSAF), a state equation derived from a transfer function (Geng(q)) of a secondary discrete system representing the correlation between the air-fuel ratio of the mixture in the combustion chamber and the detected air-fuel ratio, and a predetermined switching function gain mat (S); calculating a non-linear input (unl(n)) for a sliding mode control process based on the state quantity (σ(n)) of the switching function, the predetermined switching function gain mat (S), a predetermined non-linear gain (η) and a predetermined disturbance input (β(n)); calculating a linear input (ueq(n)) for the sliding mode control process based on a difference between the target air-fuel ratio (TGABF) and the detected air-fuel ratio (AFSAF), and the switching function gain mat (S); calculating an air-fuel ratio feedback correction value (ALPHA) from the non-linear input (unl(n)) and the linear input (ueq(n)); and feedback controlling the air-fuel ratio regulating means based on the air-fuel ratio feedback correction value (ALPHA).
Priority Claims (3)
Number Date Country Kind
2001-211571 Jul 2001 JP
2001-224162 Jul 2001 JP
2002-110508 Apr 2002 JP
US Referenced Citations (5)
Number Name Date Kind
5529043 Nagaishi et al. Jun 1996 A
6266605 Yasui et al. Jul 2001 B1
6351943 Tagami et al. Mar 2002 B1
6370473 Yasui et al. Apr 2002 B1
6431131 Hosoya et al. Aug 2002 B1
Foreign Referenced Citations (1)
Number Date Country
2000-291484 Oct 2000 JP