MATPOWER does not return this information explicitly (though it does print it 
if the verbose option is on. However, you can find it by comparing the BUS_TYPE 
column of the bus matrix before and after solving the power flow.

>> mpc = loadcase('case118'); 
>> results = runpf(mpc, mpopt);

MATPOWER Version 6.0-dev, 14-Mar-2016 -- AC Power Flow (Newton)

Newton's method power flow converged in 3 iterations.
Gen 46 at upper Q limit, converting to PQ bus
Gen 9 at lower Q limit, converting to PQ bus
Gen 15 at lower Q limit, converting to PQ bus
Gen 16 at lower Q limit, converting to PQ bus
Gen 43 at lower Q limit, converting to PQ bus
Gen 48 at lower Q limit, converting to PQ bus

Newton's method power flow converged in 3 iterations.
>> k = find(mpc.bus(:, BUS_TYPE) == PV & results.bus(:, BUS_TYPE) == PQ);
>> mpc.bus(k, BUS_I)                                                     

ans =

    19
    32
    34
    92
   103
   105

Hope this helps,

    Ray


> On Mar 24, 2016, at 11:59 AM, Bai, Wenlei <[email protected]> wrote:
> 
> Hi Jose,
> Thanks for reminder. I didn’t know this option before. It solved my question.
> So how do we know which PV bus, is there is any, is converted to PQ bus after 
> using ENFORCE_Q_LIMS option 1 or 2?
>  
> Wenlei
>  
> From: [email protected] 
> <mailto:[email protected]> 
> [mailto:[email protected] 
> <mailto:[email protected]>] On Behalf Of Jose Luis 
> Marin
> Sent: Thursday, March 24, 2016 3:57 AM
> To: MATPOWER discussion forum <[email protected] 
> <mailto:[email protected]>>
> Subject: Re: PV bus generator reactive power exceeding limits
>  
>  
> Quick question, did you use the option pf.enforce_q_lims?  (see Table C-2 in 
> the manual)
> 
> Also, be aware that options 1 and 2 may yield different solutions, in general.
>  
> -- 
> Jose L. Marin
> Grupo AIA
> 
> 
> 
> On Thu, Mar 24, 2016 at 6:08 AM, Bai, Wenlei <[email protected] 
> <mailto:[email protected]>> wrote:
> Dear Ray,
> I’ve encountered a situation: the real power and voltage are specified in PV 
> buses, and as I run the load flow on modified 30 bus case, somehow the 
> reactive power of PV bus are exceeding the limits. Some even exceed the 
> negative limits.
> The thing is the reactive power demand of the load and system isn’t large.  
> Can you see what might be wrong?
>  
> Blessings,
> Wenlei

Reply via email to