for example
mpc =loadecase('case30');
days = 10;
hour = 24;
demloadPD = importdata('demandload.xlsx');%load demandload.xlsx form
%and you should doing loop
for i = 1:days
for j =1:hour
mpc.bus( :,3) = demloadPD.LFP( :,j);
% any thing you need
end
result = runpf(mpc);
end
if you open excel file . find we have a 30 bus net work .and every time be
load once column.
my be you do runpf of runopf anyplace that you need . in the example i use
. show to you.
have nice time
On Sat, Feb 9, 2019 at 1:06 PM Ahmad Sadiq Abubakar <
[email protected]> wrote:
> Thanks very much
>
> On Sat, Feb 9, 2019, 10:03 AM amir ali Hosseini <[email protected]
> wrote:
>
>> hi
>> maybe this help to you
>>
>> for example
>>
>> days = 10;
>> hour = 24;
>>
>> demloadPD = importdata('demandload.xlsx');%load demandload.xlsx form
>> and you should doing loop
>>
>> for i = 1:days
>>
>> for j =1:hour
>>
>> mpc.bus( :,3) = demloadPD.LFP( :,j);
>>
>> % any thing you need
>>
>> end
>>
>> end
>> have nice time
>>
>> On Sat, Feb 9, 2019 at 1:18 AM Ray Zimmerman <[email protected]> wrote:
>>
>>> That’s exactly how I would handle it.
>>>
>>> Ray
>>>
>>>
>>> > On Feb 7, 2019, at 11:38 AM, Ahmad Sadiq Abubakar <
>>> [email protected]> wrote:
>>> >
>>> > Hi,
>>> > How can I run a load flow using runpf with 24-h varying loads (P, Q)?
>>> >
>>> > The only way I have thought of is to have a for loop.
>>> > Your comments, suggestions and guides will be appreciated.
>>> > Sadiq A. A
>>>
>>>
>>>
>>>