Professional Documents
Culture Documents
Power System Simulation Laboratory (EE 474) : Assignment-7
Power System Simulation Laboratory (EE 474) : Assignment-7
ASSIGNMENT- 7
Roll: 116EE0328
Obtain the state variable representation of LFC system with one input ∆Pm and perform
a. Use MATLAB step function to obtain the frequency deviation step response for a
sudden load change of ∆PL =0.2 pu.
b. Construct the Simulink block diagram and obtain the frequency deviation response for
the condition in a.
d. Construct the Simulink block diagram and obtain the frequency deviation response for
the condition in c.
Code
clc;
clear;
Tg=0.25;
Tt=0.5;
H=8;
R=0.04;
d=1.6;
A=[-1/Tg 0 -1/(R*Tg);
1/Tt -1/Tt 0;
0 1/(2*H) -d/(2*H)];
B=[0;0;-1/(2*H)];
C=[0 0 1];
D=0;
deltapl=0.2;
sys=ss(A,B,C,D);
y=deltapl*step(sys);
plot(y);
K = place(A,B,p);
a=A-B*K;
sys1=ss(a,B,C,D);
y1=deltapl*step(sys1);
plot(y1);
A=
-4.0000 0 -100.0000
2.0000 -2.0000 0
0 0.0625 -0.1000
B=
-0.0625
C=
0 0 1
sys =
A=
x1 x2 x3
x1 -4 0 -100
x2 2 -2 0
x3 0 0.0625 -0.1
B=
u1
x1 0
x2 0
x3 -0.0625
C=
x1 x2 x3
y1 0 0 1
D=
u1
y1 0
p=
a=
-4.0000 0 -100.0000
2.0000 -2.0000 0
sys1 =
A=
x1 x2 x3
x1 -4 0 -100
x2 2 -2 0
x3 0.4 0.4 -6
B=
u1
x1 0
x2 0
x3 -0.0625
C=
x1 x2 x3
y1 0 0 1
D=
u1
y1 0