Whenever you have a problem with a case file, the first thing to do is always 
run case_info() 
<http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0b1/case_info.html> 
to check for errors in the connectivity information …

>> case_info('casem84')
Bad bus numbers:              1
           bus(1, BUS_I) = 0

Turns out that bus numbers must be positive integers, as stated in caseformat 
<http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0b1/caseformat.html>.

    Ray



> On Jun 23, 2016, at 1:59 AM, anshu dahiya <[email protected]> wrote:
> 
> sir how to solve the following error in matpower which comes in the case84 
> which i have attached
> Error using sparse
> Index into matrix must be positive.
> 
> Error in ext2int (line 141)
>             n2i = sparse(mpc.bus(:, BUS_I), ones(nb, 1), 1:nb, max(mpc.bus(:, 
> BUS_I)), 1);
> 
> Error in runpf (line 111)
> mpc = ext2int(mpc);
> 
> On Wed, Jun 22, 2016 at 6:59 PM, Ray Zimmerman <[email protected] 
> <mailto:[email protected]>> wrote:
> Assuming this is for a power flow problem, you still have to decide whether 
> the bus is voltage controlled or not. If so, make it a PV bus. If not, and 
> the DG simply injects a fixed amount of power without controlling voltage, 
> then make it a PQ bus.
> 
>    Ray
> 
> 
> 
> > On Jun 22, 2016, at 1:27 AM, anshu dahiya <[email protected] 
> > <mailto:[email protected]>> wrote:
> >
> > how to nominate DG bus which has load as well as generation
> > the nomenclature in the matpower as below
> > 1= PQ bus
> > 2= PV bus
> > 3= reference bus
> > 4= isolated bus
> > i have attached my file plz take a look of it. suggest me solution.
> > <casem84.m>
> 
> 
> 
> 
> <casem84.m>

Reply via email to