Thank you for your answers! Yesterday i tested the consequences of changing
the bus / gen / branch order and all seems to be ok.

In particular, case300.m is very similar to my case, because for example
bus numbers "jump" to 664 to 1190 and from 2040 to 7001, so i've tested
also that if any number misses MATPOWER still works.

I've also tested the influence of switching F_BUS and T_BUS: it still
works, but PAY ATTENTION: obviously if in the branch there is a
transformer, you CAN'T change F_BUS with T_BUS!

The important thing, as Dr. Zimmerman said, is that every bus has its
unique ID.

Thank you all.

Best regards,

Marco Barbetta

2014-11-10 19:43 GMT+01:00 Ray Zimmerman <r...@cornell.edu>:

> The (external) bus numbers used in the bus, gen, and branch matrices in
> your case file are simply unique integer IDs for the buses and are
> completely independent from any ordering of the rows of any of the
> matrices. The only significance of the ordering is that the output and
> results will appear in the same order as the inputs. So any correspondence
> between the external bus numbers and the row number in the matrix is
> completely coincidental.
>
>     Ray
>
> --
> Ray Zimmerman
> Senior Research Associate
> B30 Warren Hall, Cornell University, Ithaca, NY 14853  USA
> phone: (607) 255-9645
>
>
> On Nov 9, 2014, at 2:44 PM, Abhyankar, Shrirang G. <abhy...@mcs.anl.gov>
> wrote:
>
>  Try it out and send an email if you encounter errors.
>
>  Shri
>
>   From: Marco Barbetta <marco.barbetta1...@gmail.com>
> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
> Date: Sun, 9 Nov 2014 17:41:24 +0100
> To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
> Subject: Re: Order of data in mpc struct affect MatPower functionalities?
>
>  Thank you again! What about generators' order?
>
> 2014-11-09 17:28 GMT+01:00 Abhyankar, Shrirang G. <abhy...@mcs.anl.gov>:
>
>> The branch "from bus" and "to bus" numbers don't need to be sorted.
>>
>> Shri
>>
>> From:  Marco Barbetta <marco.barbetta1...@gmail.com>
>> Reply-To:  MATPOWER discussion forum <matpowe...@list.cornell.edu>
>> Date:  Sun, 9 Nov 2014 17:13:58 +0100
>> To:  MATPOWER discussion forum <matpowe...@list.cornell.edu>
>> Subject:  Re: Order of data in mpc struct affect MatPower functionalities?
>>
>>
>> >Thank you for your answer. Did you try to change branches' order instead
>> >of bus order?
>> >
>> >2014-11-09 16:07 GMT+01:00 Abhyankar, Shrirang G. <abhy...@mcs.anl.gov>:
>> >
>> >I don't think there should be any issue even if the bus numbers are
>> >unsorted. I tested it with case9.m and there weren't any errors.
>> >
>> >Shri
>> >
>> >From: Marco Barbetta <marco.barbetta1...@gmail.com>
>> >Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
>> >Date: Sat, 8 Nov 2014 12:34:00 +0100
>> >To: <matpower-l@cornell.edu>
>> >Subject: Order of data in mpc struct affect MatPower functionalities?
>> >
>> >
>> >
>> >Dear collegues,
>> >
>> >i would like to ask a simple question about the order of data in the mpc
>> >struct.
>> >
>> >Every "caseXXX.m" that i analyzed presents bus, generators and branches
>> >in ascending order, for example in "case_ieee30.m":
>> >
>> >mpc.bus = [
>> >13 00 00 11.06 0132 1
>> >22 21.712.7 00 11.043 -5.48132 1
>> >31 2.41.2 00 11.021 -7.96132 1
>> >
>> >mpc.gen = [
>> >1260.2 -16.110 01.06 1001 360.2
>> >240 5050 -401.045 1001 140
>> >50 3740 -401.01 1001 100
>> >
>> >mpc.branch = [
>> >12 0.01920.0575 0.05289900
>> >13 0.04520.1652 0.04089900
>> >24 0.0570.1737 0.03689900
>> >34 0.01320.0379 0.00849900
>> >25 0.04720.1983 0.04189900
>> >
>> >
>> >For my master thesis i'm implementing a code to import datas in a certain
>> >format from a Excel file in order to "create" (or, better, overwrite) a
>> >mpc struct. My question is: if i don't put datas in ascending order, but
>> >in "sparse" order, for example:
>> >
>> >mpc.branch = [
>> >211212 0.01920.0575 0.05289900
>> >123 0.04520.1652 0.04089900
>> >
>>  >        170 1710.0452 0.16520.0408 9900
>>  >
>> >
>> >MatPower funcionalities and behavior will suffer?
>> >
>> >Obviously the question is about the order of the matrix's rows: in case
>> >of "switch" of the matrix's rows, other datas (BR_R , BR_X , BR_B , ecc)
>> >must follow their row, and my code makes sure that this happens.
>> >
>> >Thank you in advance for your help.
>> >
>> >Best regards,
>> >
>> >Marco Barbetta
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>>
>>
>>
>
>

Reply via email to