02.06.2014 Views

symbolic dynamic models for highly varying power system loads

symbolic dynamic models for highly varying power system loads

symbolic dynamic models for highly varying power system loads

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

84<br />

end<br />

end<br />

newwd;<br />

wdlen;<br />

mm=wdlen+1;<br />

emp=any(newwd(:,2:nw));<br />

if(emp==0)<br />

newI(p)=newwd(1);<br />

else<br />

newI(p)=newwd(mm);<br />

end %end of if-else<br />

x=[x,newI(p)];<br />

% New value of current, newI is the last symbol of the new % word,<br />

selected from the mini dictionary.<br />

clear ss k temp nx minx minfr len wdlen min wtfr sm newfr cfr sz newwd<br />

p=p+1;<br />

end % end of while<br />

Ipred=newI'-B % predicted current data set<br />

Iact=I(3001:5000)-B; % expected current<br />

RMSpred=sqrt(mean(Ipred.^2)) %RMS of predicted data<br />

Avgpred=mean(Ipred) %Average value of predicted data<br />

RMSact=sqrt(mean(Iact.^2))%RMS value of actual data<br />

Avgact=mean(Iact) % Average value of actual data<br />

Error_act=((RMSpred-RMSact)/RMSact)*100<br />

RMShist=sqrt(mean(I_hist.^2)) %RMS of historical data<br />

Error_hist=((RMSpred-RMShist)/RMShist)*100<br />

Avghist=mean(I_hist) % Average value of historical data

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!