I’m afraid I don’t understand your code example (see here
<http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/runpf.html> for the
calling syntax options for runpf), but if you want to see the deviations of bus
voltages from 1 p.u. in, say, the results of a power flow, you can simply do
something like …
define_constants;
r = runpf('case9');
dV = abs(r.bus(:, VM) - 1)
— Ray
> On Nov 21, 2017, at 10:27 AM, Sabhan Kanata <[email protected]> wrote:
>
>
>
> Dear Ray Zimmerman,
>
>
> if function [PLOSS] = runpf(casename,AA)
> To find the value of the function of the voltage deviation on the load bus :
> deviation voltage = (IVi-1.0I)
>
> how to update runpf coding?
>
> Thank you
> Sabhan K