LiTH-ISY-R-1990
Computational Questions of Equilibrium Calculation with Application to Nonlinear Aircraft
Dynamics
Mats Jirstrand and Torkel Glad Department of Electrical Engineering Linkoping University, S-581 83 Linkoping, Sweden
www:
http://www.control.isy.liu.seemail:
fmatsj,torkelg@isy.liu.se1997-11-14
REGLERTEKNIK
AUTOMATIC CONTROL
LINKÖPING
Technical reports from the Automatic Control group in Linkoping are available as UNIX-
compressed Postscript les by anonymous ftp at the address
ftp.control.isy.liu.se.
Computational Questions of
Equilibrium Calculation with Application to Nonlinear Aircraft Dynamics
M. Jirstrand, S. T. Glad
Department of Electrical Engineering
Linkoping University, S-581 83 Linkoping, Sweden
WWW: http://www.control.isy.liu.se
E-mail:
fmatsj,torkel
g@isy.liu.se
Abstract
. The computation of possible stationary orientations of an aircraft subjected to constraints on actuators is treated using methods from computer algebra. The same techniques are also used to investigate possible turn maneuvers of a missile subjected to actuator constraints. The paper also gives a brief introduction to the utilized algebraic methods, cylindrical algebraic decomposition and quantier elimination.
1 Introduction
Nonlinear aircraft dynamics is usually described by a system of nonlinear dierential equations
_
x
=
f(
xu)
(1)
where
xcontains variables describing airstream orientation, rotational velocities and possi- bly orientation. The control surface deections are represented by the control variables
u. The function
fcontains the rigid body dynamics and the aerodynamic forces and mo- ments. The latter quantities are often given by tables of values initially measured in wind tunnel experiments and later on updated during real ight. For computational reasons these quantities are often represented by polynomial approximations. The question of
nding an equilibrium of the system under constraints on the actuators then results in a system of polynomial equations and inequalities. If restrictions are put on the linearized dynamics at the equilibrium, further polynomial constraints are produced.
1
Solving the problem purely by numerical methods is made complicated by the fact that multiple solutions might exist. The aim of this paper is to show how two symbolic methods implemented in computer algebra packages, known as quantier elimination and cylindrical algebraic decomposition, can be used to solve the problem.
The paper is organized as follows. In Section 2 we recapitulate some theory about aircraft dynamics. Section 3 gives a brief introduction to cylindrical algebraic decompo- sition and quantier elimination through a number of examples. The application of the algebraic methods to nonlinear aircraft dynamics is presented in Section 4. Here both an aircraft and a missile example are treated. Section 5 concludes the paper.
2 Aircraft Dynamics
Nonlinear aircraft dynamics for conventional aircrafts is usually described by the so called 6-DOF (degrees of freedom) equations 13], which is a classical state space description of a nonlinear system, written on the form (1). The state vector has 12 components and comprise the velocity vector, the vector of Euler angles, the angular rate vector, and the position vector of the aircraft all states is measured in some convenient coordinate system.
In this paper we consider the computation of possible stationary orientations (
) of the aircraft w.r.t. its wind xed coordinate system, see Figure 1. An investigation of
x-axis (body) x-axis (stability) α
β Relative wind
x-axis (wind) z-axis
(body) y-axis
(body)
Figure 1: The orientation of an aircraft with respect to the airow.
the state equations reveals that this problem is equivalent to keeping the angular rate components of the state vector constant and equal to zero. The derivatives of the angular rate components of the state vector are given by the so called moment equations of the
2
aircraft model
P_ = (
c1
R+
c2
P)
Q+
c3
L+
c4
N_
Q
=
c5
PR;c6
P(
P2
;R2 ) +
c7
M_
R
= (
c8
P ;c2
R)
Q+
c4
L+
c9
N(2) where
P Qand
Rare the components of the angular velocity vector of the body xed coordinate system. The
ciare constants determined by the moments and cross-products of inertia of the aircraft and
LM, and
Nare the rolling, pitching, and yawing moment, respectively. From equation (2) we observe that the condition for the aircraft to have stationary orientation is
L=
N=
M= 0 for all values of
c3
c4
c7
and
c9 satisfying
c
3
c9
;c24
6= 0 and
c7
6= 0. The moments
L M, and
Nare proportional to the dimensionless aerodynamic coecients
Cl CM, and
CN, respectively, which usually are measured and given by look-up tables and interpolation routines 13]. These quantities are functions of the angle of attack
, the sideslip angle
, and the aileron, elevator, and rudder deections.
Now, if the aerodynamic coecients are approximated by polynomial functions the set of
and
values corresponding to a stationary orientation of the aircraft can be described by the solution set of the following system of polynomial equations and inequalities
C
l
(
u) = 0
CM(
u) = 0
CN(
u) = 0
ju
i
j
1
i= 1
2
3
(3)
where the inequalities are normalized constraints for the aileron, elevator, and rudder deections, respectively.
Using tools from computer algebra such as cylindrical algebraic decomposition and quantier elimination we can now eliminate the
uifrom (3) and obtain closed form ex- pressions in
and
describing the possible stationary orientations of the aircraft.
3 Algebraic Tools
Cylindrical algebraic decomposition (CAD) is a method for nding feasible solutions of a system of polynomial equations and inequalities, a so called real polynomial system.
A formula is an extension of real polynomial systems to expressions involving Boolean operators (
^_:!) and quantiers (
98). There are algorithms to perform quantier elimination (QE) in formulas, i.e., to derive equivalent expressions without any quantied variables.
3
3.1 Cylindrical Algebraic Decomposition
Given a set of multivariate polynomials the CAD algorithm decomposes R
ninto compo- nents, called cells, over which the polynomials have constant signs. The algorithm also provides a point, called sample point, in each cell that can be used to determine the sign of the polynomials in the cell. This decomposition can then be utilized to decide if any real polynomial system, determined by the given polynomials, has a solution. It suces to evaluate the polynomials over the sample points to decide whether there are any solutions or not. We do not intend to give a complete description of the method but to give a brief introduction to the method by the following example.
Example 3.1 Consider the following system of polynomial inequalities
x
22
;2
x1
x2 +
x41
<0
(2431
x1
;3301)
x2
;2431
x1 + 2685
<0
:How do we determine a feasible point of the system?
In Figure 2 a CAD induced by
f1 and
f2 is shown. The cells (regions where
f1 and
f2
have constant sign) of the CAD are all white patches, arcs, vertical lines, and dots. There are 63 cells in this CAD, hence the algorithm also provides us with 63 sample points, one from each cell. If we evaluate the polynomials over the sample points only three of the points satises the system of inequalities.
f
1
=0f
2
=0f
2
=0Figure 2: A CAD induced by
f1 and
f2 and the feasible sample point
x1 = 1 2
x2 = 3 4 . The point
x1 = 1 2
x2 = 3 4 , also shown in Figure 2 is one of the sample points and since
f
1
<0,
f2
<0 at this point it is also a feasible point to the system of inequalities.
The CAD algorithm can be divided into three phases: projection, base and extension.
The projection phase consists of a number of steps, each in which new sets of polynomials
4
is constructed. The zero sets of the resulting polynomials of each step is the projection of
\signicant"points of the zero set of the preceding polynomials, i.e., self-crossings, isolated points, vertical tangent points etc. In each step the number of variables is decreased by one and hence the projection phase consists of
n;1 steps.
The base phase consists of isolation of real roots,
i 2R 1 of the monovariate polyno- mials, which are the outputs from the projection phase. Each root and one point in the each interval between two roots are chosen as sample points of a decomposition of R 1 .
The purpose of the extension phase is to construct sample points of all cells of the CAD of R
n. This is done by a lifting procedure that consists of
n;1 steps and results in a CAD for R
n.
Observe that usually it is easy to visualize zero sets of polynomials in two variables and there is no need for a CAD of R 2 to solve the problem. However, for polynomials in more than two variables there are no easy way of visualizing the zero sets and then the method really shows its power.
CAD was invented in the mid seventies by Collins 3] and since then many improve- ments of the original algorithm has been made, e.g., 8]. The algorithm has a high com- putational complexity 12, 2] and ecient implementations is therefore very important.
Introductions to CAD can be found in 9, 10, 1].
3.2 Quantier Elimination
QE is a method for eliminating variables, quantied by
9(there exists) and
8(for all), from formulas consisting of polynomial equations and inequalities combined by Boolean operators
^(and),
_(or), and
!(implies). Hence, the objective is to nd an equivalent formula without quantiers in the unquantied, or free, variables only.
CAD or a partially built CAD is usually used as a subalgorithm in existing implemen- tations of QE algorithms 4]. Once a CAD is given, elimination of quantied variables can be performed by simple sign evaluation of the projection polynomials that describes the cells together with truth tests of formulas. This method is also illustrated by an example.
Example 3.2 Consider the following QE formula (
9x2 )
x22
;2
x1
x2 +
x41
<0
^(2431
x1
;3301)
x2
;2431
x1 + 2685
<0 ]
:This formula describes the projection of the solution set of the system of inequalities onto the
x1 axis. Hence, the result after quantier elimination is one or several intervals for
x1 .
5
Utilizing the CAD in Example 3.1 an equivalent formula in
x1 can be computed 13 5
<x1
<1
:In this paper we have used
qepcad4] developed by Hong et al. at RISC in Austria to perform QE in the nontrivial examples. Another program for QE in expressions where the quantied variables appears with low degree is
redlog5], which seems very promising.
4 Applications to Aircraft Dynamics
To demonstrate the application of quantier elimination in computations regarding air- craft dynamics we will treat two examples. The rst example is the computation of equilibrium states of the F-16 ghter aircraft and the second example deals with the ma- neuvering of a missile. In both cases the dynamics is subjected to constraints on the control surface deections.
Example 4.1 The following expressions are scaled versions of the aerodynamical co- ecients of an F-16 ghter. The polynomial approximations have been obtained from look-up tables and interpolation routines in 13].
C
l
=
;38
x2;170
x1x2+ 148
x21x2+ 4
x32+
u1(
;52
;2
x1+ 114
x21;79
x31+ 7
x22+ 14
x1x22)
+
u3(14
;10
x1+ 37
x21;48
x31+ 8
x41;13
x22;13
x1x22+ 20
x21x22+ 11
x42)
C
M
=
;12
;125
u2+
u22+ 6
u32+ 95
x1;21
u2x1+ 17
u22x1;
202
x21+ 81
u2x21+ 139
x31C
N
= 139
x2;112
x1x2;388
x21x2+ 215
x31x2;38
x32+ 185
x1x32+
u1(
;11 + 35
x1;22
x21+ 5
x22+ 10
x31;17
x1x22)
+
u3(
;44 + 3
x1;63
x21+ 34
x22+ 142
x31+ 63
x1x22;54
x41;69
x21x22;26
x42)
Here
x1 and
x2 are normalized angle of attack and sideslip angle, respectively and
u1 ,
u2 , and
u3 the aileron, elevator, and rudder deections.
The angles of attack and sideslip angles corresponding to constant orientation of the aircraft can now be described by a formula using quantiers and Boolean operators to- gether with (3) as follows
9u
1
9u2
9u3
h
C
l
= 0
^ CM= 0
^ CN= 0
^ u2
i1
i:Eliminating the quantied variables gives
p1
0
^ p2
0]
_ p3
0
^ p2
0]]
^ p4
0
^ p5
0
^ p6
0
^ p7
0]
(4)
6
where
p
1
= 139x31
;283x21
+133x1
+108 p2
=139x31
;121x21
+91x1
;130p
3
= 11698571x61
;33047468x51
+27950104x41
;51263858x31
+114876460x
21
;27878444x1
;46912705and
p4
:::p7 are polynomials in
x1 and
x2 of total degree 7 of about 40 terms each.
However, although the output is quite complicated the elimination of the control variables reduce the dimension of the problem and the two dimensional solution set (4) can easily be visualized. The solution set is shown in Figure 3.
0 0.2 0.4 0.6 0.8 1
x1 -1
-0.5 0 0.5 1
x2
Figure 3: The possible stationary orientations if
juij1 (white).
In Figure 3 we observe that for zero sideslip angle there are no constraints (in the valid region of approximation) on the angle of attack, i.e., the aircraft can be kept stationary at any angle of attack between 0 and 1 (normalized values). Furthermore, the maximal constant sideslip angle can be obtained at an angle of attack of approximately 0
:4.
A number of other questions related to equilibrium calculations can also be posed.
What happens if some actuators are further constrained, e.g., jammed or damaged? In which regions of the
x1
x2 -plane can we guarantee that certain moments can be generated by the control surfaces? How does the computed equilibrium region depend on a design parameter or an uncertainty?
As an example we treat the following question. Suppose that the deection of the ele- vator has been further constrained to
ju2
j1
2 . For what angles of attack can the elevator generate pitching moments corresponding to an aerodynamic coecient of magnitude greater than 40? The QE formula becomes
9u
2
CM2
>1600
^4
u2 2
1 ]
:7
Elimination
u2 in this formula gives 0
<x1
< a, where
a0
:739182 is the unique root between 0 and 1 of
556
x3
;646
x2 + 355
x;134 = 0
:The answer to this question is a region (in this case an interval) where we have some guaranteed robustness against disturbances, since we can generate compensating moments of a prescribed magnitude.
Note also that it is easy to incorporate symbolic design parameters or parameters representing system uncertainties in the above formulas and investigate their eect on the computed regions, since QE is a symbolic method.
Example 4.2 Here we consider the aerodynamics for pitch-axis control of a missile, see Figure 4.
x
1
u
1
C
Z C
M
Figure 4: Normal force and moment on a missile.
The quantities that determine the motion in the vertical plane of the missile are the normal force and pitching moment, which in turn are functions of the angle of attack, sideslip angle, and elevator. The following is a polynomial expression for the normal force (neglecting gravity)
C
Z
(
x1
x2
u1 ) =
;13
x1
;120
x21 + 390
x31
;100
x1
x22
;1350
x51
;1400
x31
x22 + 875
x1
x42
;4
u1
and the pitching moment
C
M
(
x1
x2
u1 ) =
;13
x1
;10
x21 + 4
x22 + 460
x31
;520
x1
x22
;2600
x51 + 3000
x31
x22 + 680
x1
x42
;35
u1
where
x1 is the angle of attack,
x2 is the sideslip angle, and
u1 is the elevator angle. These polynomial approximations comes from 6].
8
An analysis of how quick the missile can turn in the vertical plane can be carried out by QE methods. The missile describes a circular motion if the normal force is constant and the pitching moment is zero, the larger force the smaller radius. This implies that limits on what normal forces that can be generated limit the possible turn radii. The question how quick the missile can turn, subjected to elevator deection constraints, can thus be formulated as follows: What normal forces can be generated, for constant speed of rotation (i.e., zero pitching moment), if the maximum elevator angle is limited? The analysis is carried out in the vertical plane so the sideslip angle is
x2 = 0.
Adding some constraints on the angle of attack, elevator, and normal force gives a quantier formula in the variables
f,
x1 ,
u1
9x
1
9u1
CZ(
x1
0
u1 ) =
f ^ CM(
x1
0
u1 ) = 0
^0
x1
3
10
^ ;1
40
u1
1
20
^ ;8
f0 ]
:Quantier elimination via cylindrical algebraic decomposition shows that the
f-axis is divided into 51 cells. An investigation of the truth value of the above formula over each cell (interval) shows that there exist
x1 and
u1 satisfying the formula for
fin the intervals
f1
f2 ]
f3
0]
where
f1 =
;7
:5993,
f2
;3
:148712 is the unique real root between
;13
=4 and
;25
=8 of 38932892876800000
x5+ 1718497027686400000
x4+24272290834718720000
x3+ 138926900972696832000
x2+326132672903058884000
x+ 250374264550106371777 = 0
and
f3
;1
:504850 is the unique real root between
;13
=8 and
;3
=2 of
38932892876800000
x5+ 1718497027686400000
x4+24272290834718720000
x3+ 138926900972696832000
x2+326132672903058884000
x+ 250374264550106371777 = 0
:The intervals correspond to two disjoint \turn regions"shown to the left in Figure 5.
To the right in Figure 5 the moment and force functions for
u1 = 0 are shown. Here we can clearly see that the constraint on the elevator makes it impossible to compensate for large negative moments. This is the reason for the limits on the turn radius. The region of smaller turn radii in Figure 5 is due to the shape of the moment curve. However, it is probably hard to control the missile to perform turns corresponding to the region of smaller radii due to the intermediate region of non-realizable turns.
9
-4 -3 -2 -1 0 1
0 0.1 0.2 0.3 0.4
-12 -10 -8 -6 -4 -2 0
0 0.1 0.2 0.3 0.4
x
1
x
1
M
C
Z