From: prachi mat on 3 Nov 2009 02:26 hi i have to design a h infinity controller for doubly fed induction generator for maximum power tracking i have written the code for it but getting errors the code is clc clear ws=104; wsl=0.2*ws; p=3.14; Ts=-1; kl=1000; wl=50; wh=1000; kh=10^-4; %state space equations of plant model b1=[1 0 0 0 ;0 1 0 0 ;-1600 0 0 0 ;0 -1600 0 0 ]; b2=[0 0;0 0;1647 0;0 1647]; c2=[1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1]; c1=[0 0 -1 0;0 0 0 -1]; d11=[0 0 1 0;0 0 0 1]; d12=[0 0;0 0]; d21=[0 0 0 0;0 0 0 0;0 0 0 0;0 0 0 0]; d22=[0 0;0 0;0 0;0 0]; a=[1.336 104.67 8.951e-3 0;-104.67 -1.336 0 8.95e-3;2140 (-167.7e3+(wsl)*1.6e3) 0 wsl;167.7e3 -wsl*1.6e3 2.14e3-wsl -24.38]; ss_g=mksys(a,b1,b2,c1,c2,d11,d12,d21,d22,Ts,'tss'); %second order weights nw1=[0 kl*kl]; dw1=[1 2*wl wl*wl]; w1=tf(nw1,dw1) nw2=[kh*kh 0 0]; dw2=[1 2*wh wh*wh]; w2=tf(nw2,dw2) w3=[]; tssp=augtf(ss_g,w1,w2,w3); [ssf,sscl]=hinf(tssp); [acp,bcp,ccp,dcp]=branch(ssf); [acl,bcl,ccl,dcl]=branch(sscl); [np1,dp1]=ss2tf(acl,bcl,ccl,dcl) the errors are Error in ==> mkargs5x at 60 emsg=''; ??? Output argument "nag1" (and maybe others) not assigned during call to "C:\Program Files\MATLAB\R2008b\toolbox\robust\rctobsolete\robust\mkargs5x.m>mkargs5x". Error in ==> augtf at 32 [emsg,nag1,xsflag,Ts,ag,bg,cg,dg,w1,w2,w3]=mkargs5x('ss,lti',varargin); error(emsg); Error in ==> hinf1 at 30 tssp=augtf(ss_g,w1,w2,w3); so please help me out
|
Pages: 1 Prev: DICOM SPM5 preprocessing error messages Next: Data loss in imread() and imwrite()? |