Hi Samuel,

Thank you very much for your kind assistance.
Thanks to you, the issue was resolved.

Sincerely,

Teiji



2017-05-22 16:51 GMT+09:00 Samuel Perkin <[email protected]>:

> Hi Teiji,
>
>
>
> It is hard to solve the issue without seeing your code or a MWE (Minimum
> Working Example), but it seems like you have been assigning invalid bus
> types. You should check the values stored in:
>
>
>
> *mpc.bus(:,2)   *or *mpc.bus(:,BUS_TYPE)*
>
>
>
> To see if there are any values in this column that are not equal to 1,2,3
> or 4. Note that 0 is not a valid number here for BUS_TYPE, which I am
> guessing you may be setting to simulate a bus contingency. Instead I would
> set the bus type to 4 and the state of connecting branches to 0.
>
>
>
> I hope this helps,
>
>
>
> Samuel
>
>
>
>
> * Samuel Perkin  *
>  Kerfisstjórnunarsvið / System Operations
>  Tel / Sími +354 563 / Mobile / Gsm. +354 / [email protected]
>
>
>
> *  www.landsnet.is <http://www.landsnet.is> / www.facebook.com/landsnet
> <http://www.facebook.com/landsnet> / www.twitter.com/landsnethf
> <http://www.twitter.com/landsnethf>*
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Teiji Ponishi
> *Sent:* 21. maí 2017 09:11
> *To:* [email protected]
> *Subject:* Parallel computing of MATPOWER
>
>
>
>  Hello,
>
> In order to perform a contingency analysis efficiently, I would like to
> perform a parallel processing of MATPOWER(Ver. 5.1) using parfor loop in
> parallel computing toolbox.
>
> However, when I executed the MATLAB code including MATPOWER and parfor
> loop.
> the following error messages was obtained.
>
> --------------- from here --------------------------
>
> ERROR: ext2int (line 137)
>
> ext2int: bus 1 has an invalid BUS_TYPE
> ext2int: bus 2 has an invalid BUS_TYPE
> ext2int: bus 3 has an invalid BUS_TYPE
> ext2int: bus 4 has an invalid BUS_TYPE
> ext2int: bus 5 has an invalid BUS_TYPE
> ext2int: bus 6 has an invalid BUS_TYPE
> ext2int: bus 7 has an invalid BUS_TYPE
>
> -------------- same error from bus 8 to bus 101 ------------
>
> ext2int: bus 102 has an invalid BUS_TYPE
> ext2int: bus 103 has an invalid BUS_TYPE
> ext2int: bus 104 has an invalid BUS_TYPE
> ext2int: bus 105 has an invalid BUS_TYPE
>
> ERROR: opf (line 197)
>
> mpc = ext2int(mpc);
>
> ERROR: runopf (line 77)
>
> [r, success] = opf(casedata, mpopt);
>
> ERROR: Program_revised (line 481)
>
>     parfor i=1:number
>
> --------------- to here --------------------------------
>
>
> I will appreciate your help with this situation.
>
>
> Teiji
>

Reply via email to