Professional Documents
Culture Documents
:controlled state
: uncontrolled state
C
N
X
X
( ) ( )
dim dim
C
X U m = =
Linear Equations: Solution Technique
? X =
0 b A is nonsingular,
Motivation:
c
N
X
X
X
=
1 1
2 2
C
N
A B X
X U
A B X
= +
=
Which gives
Note: B
1
is square
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
4
Solution Technique: Direct Inversion of A
Computation of Involves too many
computations, roughly number of
operations (very inefficient for large n).
This approach also suffers from the problem of
sensitivity (ill-conditioning) ,when
Round off errors may lead to large inaccuracies
2
! n n
1
A
0 A
1
X A b
=
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
5
Solution Technique: Gauss Elimination
4
2
1
1 1 0
1 2 1
0 1 2
3
2
1
X
X
X
4
2 3
1
1 1 0
1 2 3 0
0 1 2
3
2
1
x
x
x
Example:
Solution Steps:
Step-I: Multiply row-1 with -1/2 and add to the row-2.
row-3 keep unchanged, since a
31
=0.
o Do row operations to reduce the A matrix to a upper
triangular form
o Solve the variable from down to top
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
6
Step-II: Multiply row-2 with -2/3 and add to row-3
3
2 3
1
3 1 0 0
1 2 3 0
0 1 2
3
2
1
x
x
x
1
2
3
3
5
9
x
x
x
=
Final Solution
Upper Triangle Matrix
Solution Technique: Gauss Elimination
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
7
Gauss Elimination
o The total number of operations needed is
which is far lesser than computing
(which requires operations )
o The Gauss elimination method will encounter
potential problems when the pivot elements i.e..
diagonal elements become zero, or very close to
zero at any stage of elimination.
o In such cases the order of equations can be changed
by exchanging rows and the procedure can be
continued
( )
3
2/3 n
( )
A
A adj
A =
1
2
! n n
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
8
Nonlinear Algebraic Equations
Motivation: Finding the forced equilibrium condition for a nonlinear
system to get an appropriate operating point for linearization
( ) 0 = X F ? X =
( )
, X f X U =
( )
( )
,
,
C
C
N N
f X U
X
X f X U
=
( )
0 0
,
C C
X f X U =
Solve for
0
U from ( )
0
C
f U =
Problem:
( ) ( ) ( )
dim dim dim
C C
X f U = =
0
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
9
Newton-Raphson Method: Scalar Case
( ) ( )
( )
1
( ) 0
Using Taylor series expansion
( )
( )
( )
From the above equation with an initial guess
we can iteratively solve for
k
k
k k k k
x
k k
x
k
k k
k
f x
df
f x x f x x higher orderterms
dx
df
x f x
dx
f x
x x
f x
+
=
+ + + +
=
=
+ +
( )
k k k
A X F X =
( )
1
k k k
X A F X
= Solve for
Update
1 k k k
X X X
+
= +
Newton-Raphson Method: Multi Variable Case
( ) 0 F X =
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
12
o Start with guess value x
1
o Solve for
o Update
o Continue until convergence
k
x
( )
1
1, 2,...
k k k
x x x k
+
= + =
Newton-Raphson Method: Algorithm
Convergence Condition
( )
Absolute Error
tol
k
f x <
1.
2.
( )
1 1
Relative Error
/ < tol,
k i i i
a k k k
x x x k
+ +
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
13
Example: N-R Method
( )
( )
( )
( )
( )
( )
3 2 4
2
0
4
0
1 0
3
0
4
1
2 1
1
Find a root of the following equation
0165 3993x10 0
3 033 . Let 0.02. Then
3.413x10
0.02 0.08320
' 5.4x10
1.670x10
0.08320
6.
f x x . x + .
f x x . x x
f x
x x
f x
f x
x x
f x
= =
= =
= = =
= =
Question :
Solution :
( )
( )
3
5
2
3 2
3
2
0.05824
689x10
3.717x10
0.05284 0.06235
' 9.043x10
f x
x x
f x
=
= = =
=
If f '(x
i
) 0 at some x
i ,
x
i+1
becomes very large value
Even after several
iterations there is no
convergence!
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
19
N-R Method Drawbacks
f'(x
*
) is unbounded
If the derivative of f(x) is unbounded at the
root then Newton-Raphsonmethod will not
converge.
Exercise: Verify for f(x)=x
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
20
Numerical Differentiation
Central
difference
Backward
difference
Forward
difference
Error Numerical
Approximation
Definition Technique
Name
( )
2
O x
( )
O x
( ) ( )
0 0
f x x f x
x
+
( ) ( )
0 0
f x f x x
x
( ) ( )
0 0
2
f x x f x x
x
+
( ) ( )
0
lim
x
f x x f x
x
+
( ) ( )
0
lim
x
f x f x x
x
( ) ( )
0
lim
2
x
f x x f x x
x
+
( )
O x
df
dx
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
21
Numerical Integration
Trapezoidal Rule:
Note: Numerical Differentiation is Error Amplifying.
where as Numerical Integration is Error Smoothing.
I
1
I
2
----- I
n-1
I
n
f
1
f
2
f
3
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
22
Numerical Integration
o Trapezoidal Rule:
( ) ( )
( ) ( )
[ ]
1 2 -1
0 1 1 2
2 1 1
0 1 2 1
1 1
2 2
1 1
2 2
2 2 2
2
n n
n n n n
n n
I I I I I
x f f x f f
x f f x f f
x
f f f f f
+ + + +
= + + + +
+ + + +
= + + + + +
0
1 1
I
2 2
n
n
f f
f f x
+ + + +
= +
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
28
Euler integration has error of the order of
Small step size may be needed for good
accuracy. This is in conflict with the
computational load advantage.
Lesser computational load
t
Euler Integration: Useful Comments
( )
2
t
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
29
Runge-Kutta Fourth Order Method
where
( )
1
,
i i
k f t x =
2 1
1 1
,
2 2
i i
k f t t x k t
= + +
3 2
1 1
,
2 2
i i
k f t t x k t
= + +
( )
4 3
,
i i
k f t t x k t = + +
( )
1 1 2 3 4
2 2
6
i i
t
x x k k k k
+
= + + + +
In each step the derivative is calculated
at four points, once at the initial point,
twice at trial mid points and once at
trial end point
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
30
{ }
( )
5
t
Runge-Kutta Algorithm
Error
The method uses a 4
th
order power series
approximation to come up with this
algorithm. Hence, the algorithm is called
RK-4 method
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
31
ADVANCED CONTROL SYSTEM DESIGN
Dr. Radhakant Padhi, AE Dept., IISc-Bangalore
32