?? sec12_42.m
字號:
% Example of an LMI fesibility problem (Lyapunov equation)
%
% Copyright 1996-2003 Sigurd Skogestad & Ian Postlethwaite
% $Id: Lyap_LMI.m,v 1 2004/26/04 kariwala Exp $
A = randn(4,4);
setlmis([])
P = lmivar(1,[size(A,1) 1]); % Specfiy the matrix variable
Lyap = newlmi
lmiterm([Lyap 1 1 P],1,A,'s') % Specifying the LMI AP + P'A < 0
lmiterm([Lyap 1 2 0],0)
lmiterm([Lyap 2 2 P],-1,1) % P > 0
LMIsys = getlmis; % Obtaining the system of LMIs
[tmin,xfeas] = feasp(LMIsys); % Solving the feasibility problem
% Feasible (A is stable) iff tmin < 0
Pfeas = dec2mat(LMIsys,xfeas,P); % Obtaining the feasible P
evalsys = evallmi(LMIsys,xfeas); % Validation of results
[Lhs,Rhs]=showlmi(evalsys,1); % Feasible if Lhs < 0
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -