Control System Assignment Help
Control System Assignment Help
CONTROL SYSTEMS
VISIT US:
WWW.MATLABASSIGNMENTEXPE
RTS.COM
MAIL US:
INFO@MATLABASSIGNMENTEXPE
RTS.COM
CONTACT US:
+1 (315)557-6473
Problem 1.1 Consider the task of finding a controller F = F(s)
(with two inputs r, q and one output v) which stabilizes the
system on Figure 1.1 with
Answer: Use
www.matlabassignmentexperts.com
which leads to
www.matlabassignmentexperts.com
(c) Find all frequencies w € ≈ R at which the setup has control
singularity or sensor singularity
www.matlabassignmentexperts.com
(d) Suggest a way to modify the setup, by introducing extra
cost and disturbance variables, scaled by a single real
parameter d ≈ R, so that the parameterized problem becomes
well-posed for d √= 0, and the original ill-posed problem is
recovered at d = 0.
www.matlabassignmentexperts.com
The SIMULINK diagram for testing the controller is defined
in ps1 1b.mdl:
function ps1_1(d)
% function ps1_1(d)
%
% function for 6.245/Spring 2004 PS Problem 1.1
www.matlabassignmentexperts.com
load_system(’ps1_1a’); % load the design model
into workspace
[a,b,c,d]=linmod(’ps1_1a’); % extract the LTI model
close_system(’ps1_1a’); % close the design model
p=pck(a,b,c,d); % re-write plant model in
Mu-Tools format
[k,g]=h2syn(p,2,1,2,0); % design the controller
[ak,bk,ck,dk]=unpck(k); % get a state space model
of the controller
K=ss(ak,bk,ck,dk); % define controller as a
standard LTI object
assignin(’base’,’K’,K); % export controller into
workspace
load_system(’ps1_1b’); % open the testing model
into workspace
[ac,bc,cc,dc]=linmod(’ps1_1b’); % extract the testing
model coefficients
close_system(’ps1_1b’); % close the testing model
G=ss(ac,bc,cc,dc); % calculate the closed
loop H2 norm
disp([’True H2 norm: ’ num2str(norm(G))]); %
the actual H2 norm
disp([’Promised H2 norm: ’ num2str(h2norm(g))])
% H2 norm promised by h2syn
www.matlabassignmentexperts.com
Problem 1.2 Consider the feedback design setup from
Figure 1.2. It is frequently claimed that location
www.matlabassignmentexperts.com
where b, c are positive parameters, and c ∈ b, examine the
possibility of finding a controller F which makes S(jw)H(jw)
< 1 for all w € ≈ R. Since | | H(jw) |≈ 10 for w ≤ b, and |H(jw)
≈ 10(b/c)2 ≤ | 1 for w ∈ c | | , a controller satisfying condition
|S(jw)H(jw)| < 1 will provide (at least) the closed loop
bandwidth b. For all a ≈ {0.1, 1, 10}, use H-Infinity
optimization to find, with relative accuracy 20 percent, the
maximal b such that the objective |S(jw)H(jw)| < 1 can be
achieved with c = 20b. Make a conclusion about the relation
between a and the achievable closed loop bandwidth.
www.matlabassignmentexperts.com
and the testing block diagram ps1 2b.mdl:
function ps1_2(a,b)
% function ps1_2(a,b)
%
% Solves 6.245/Spring
2004
www.matlabassignmentexperts.com
s=tf(’s’); % the "Laplace
transform" s as a system
if nargin <1, a=1; end % default a
if nargin <2, b=0.2*a; end % default b
C=20*b; % extra parameter
assignin(’base’,’a’,a); % export variables
assignin(’base’,’b’,b);
assignin(’base’,’s’,s);
P0=(s-a)/(s+1); % plant and
shaping filter
H=10*((s/c)^2+sqrt(2)*(s/c)+1)/((s/b)^2+sqrt(2)*(s/b)+1);
assignin(’base’,’P0’,P0); % export
variables
assignin(’base’,’H’,H);
load_system(’ps1_2a’); % generate state
space plant model
[a,b,c,d]=linmod(’ps1_2a’);
close_system(’ps1_2a’);
d22=d(2,2); % remember D22
d(2,2)=0; % zero out D22 in
the hinfsyn input
p=pck(a,b,c,d); % H-Infinity
optimization
[k,g,gfin]=hinfsyn(p,1,1,0,1,0.1,2,1e-10,1e-6,0);
if ~isempty(k), % if H-Inf norm not
exceeding 1 is possible
[ak,bk,ck,dk]=unpck(k); % get the controller
K=ss(ak,bk,ck,dk);
www.matlabassignmentexperts.com
assignin(’base’,’K’,K); % export controller and D22
assignin(’base’,’d22’,d22);
load_system(’ps1_2b’); % generate closed loop
model
[ac,bc,cc,dc]=linmod(’ps1_2b’);
close_system(’ps1_2b’);
disp([’gmin:’ num2str(gfin)])
bode(ss(ac,bc,cc,dc)) % check the Bode plot
visually
else
disp(’Infeasible specifications’)
end
The results of optimization show that the ratio b/a is
approximately equal to 0.3
www.matlabassignmentexperts.com