you are doing it right,
just save your result somewhere and "end' your "for". That should do it.

On Wed, Jun 6, 2012 at 3:41 PM, iman <[email protected]> wrote:

> how did u implement it Hanie?
>
>
> On Thu, Jun 7, 2012 at 1:11 AM, Hanie Sedghi <[email protected]>wrote:
>
>> yes you can.
>>
>> Best,
>> Hanie
>>
>>
>> On Wed, Jun 6, 2012 at 12:54 PM, iman <[email protected]> wrote:
>>
>>> Dear All,
>>> Can load scaling or the following code in Matpower , do power flow
>>> calculation in a period of time(due to load variability in different times)
>>> ?
>>> Thanks
>>>
>>> --
>>> Best regards
>>> Iman
>>>
>>>
>>>
>>> mpc = loadcase('case118');
>>> define_constants;
>>> Nominal_PD = mpc.bus(:,  PD);
>>> Nominal_QD = mpc.bus(:, QD):
>>> for factor = 0.8:0.01:1.20
>>>  mpc.bus(:, PD) = factor * Nominal_PD;
>>>  mpc.bus(:, QD) = factor * Nominal_QD;
>>>  results = runpf(mpc);
>>>
>>>
>>>
>>>
>>>
>>
>
>
> --
> Best regards
> Iman
>
>

Reply via email to