Dear all,I want to find expected dispatch for IEEE 188 Bus system with 30% Wind 
farms where wind scenrios is nj=400 and for time period nt=12 hours. Please 
help where this code have problem.
define_constantsmpopt = mpoption('verbose', 0);
mpc = loadcase(case118);
nWF=fix(sum(mpc.gen(:,9))*0.3/100);%30% wind farms
PVbus=find(mpc.bus(:,BUS_TYPE)~=1);
xgd = loadxgendata(ex_xgd118, mpc);
for i=1:nWF    
    [iwind(i), mpc, xgd] = addwind(ex_wind_dynmc118, mpc,xgd);
end
nt =12;nj=400;
weibullpdf=wblpdf(0.01:0.01:nj*0.01,1:nj,1);
transmat = {repmat(weibullpdf,nt,1)};profiles = 
getprofiles(uniformwindprofile(nj, nt), iwind);
profiles = getprofiles('ex_load_profile118', profiles);
mdi = loadmd(mpc, transmat, xgd, [], [], profiles);
mpopt = mpoption('verbose', 0, 'most.dc_model', 1);
mdo = most(mdi, mpopt);
EPg = mdo.results.ExpectedDispatch

But its giving expected dispatch for 1 hour only, instead of 12 hours. Can you 
point out my mistake?


Regards,
Aamir Nawaz

Reply via email to