sir
i am doing my project on demand response using time based program.
1.i am taking an ieee 14 bus system.
2.i apply demand response on one of the buses which have more demand.
3.for that i require peak,off peak and valley period demand and price under
different periods.
4.for 8hrs,4hrs and 10hrs the load variation is 0.5*peak
load,1*peakload,0.8*peakload respectively i assumed.
5.i want to select 3rd bus and assume peakload as 41MW.
6.i use this code for first 8hrs.
mpc0 = loadcase('case14');
for t = 1:8
mpc(t) = mpc0;
mpc(t).bus = scale_load(0.5, mpc(t).bus);
results(t) = runpf(mpc(t));
end
i get some result.but i want the load to be change at third bus only as
mentioned w.r.t peakload
7.for that i try this code
mpc0 = loadcase('case14');
>> for t = 1:8
mpc(t) = mpc0;
mpc(t).bus = scale_load(0.5, mpc(t).bus(4,4));
results(t) = runpf(mpc(t));
end
Attempted to access bus(:,3); index out of bounds because numel(bus)=1.
Error in scale_load (line 168)
load_zone(bus(:, PD) ~= 0 | bus(:, QD) ~= 0) = 1; %% FIXED loads
it is showing like this.
i use mpc(t).bus(4,4) because it is the representation of 3rd bus load in
the bus data.is it correct approach.
8.how can we set price for different periods.
9.please suggest me