Linear Systems and Control - Week 8: MATLAB and Simulink Simulation of Controller Design
Linear Systems and Control - Week 8: MATLAB and Simulink Simulation of Controller Design
Solution:
Check the pre-requisites of controller (if pre-requisites full-filled then
goto next step)
Design a suitable controller and
Integrate/connect the controller with the system.
Controller Design Techniques Design of controller
Controller Design Methods
Types of Controller
Types of Controller
Example
clear;
clc;
A=[2 3; 0 5 ];
eig(A)
Controller Design Techniques Design of controller
clear;
clc;
A=[2 3; 0 5 ];
eig(A)
Controller Design Techniques Design of controller
λ 0 2 3
det(λI − A) = det −
0 λ 0 5
λ−2 −3
= det
0 λ−5
= (λ − 2)(λ − 5) − (0)(−3)
= (λ − 2)(λ − 5) − (0)
= (λ − 2)(λ − 5)
The eigenvalues of matrix A are at 2 and 5, which indicates it is an unstable
system.
Controller Design Techniques Design of controller
dx1
dt
2 3 x1 1
dx2 = + u(t)
dt
0 5 x2 2
1 0 x1
y=
0 1 x2
Controller Design Techniques Design of controller
dx1
dt
2 3 x1 1
dx2 = + u(t)
dt
0 5 x2 2
1 0 x1
y=
0 1 x2
As matrix C is identity matrix, we proceed to design of full state feedback
controller and check the second pre-requisite.
Controller Design Techniques Design of controller
In this case n =
Controller Design Techniques Design of controller
1 8
P =
2 10
det(P ) = −6
1 8
P =
2 10
det(P ) = −6
clear;
clc;
A=[2 3; 0 5 ];
B=[1; 2];
P=[B A*B]
rank(P)
Controller Design Techniques Design of controller
clc;
A=[2 3; 0 5 ];
B=[1; 2];
P=[B A*B]
rank(P)
desiredegn=[-3 -5];
K=place(A,B,desiredegn)
Controller Design Techniques Design of controller