test_matpower shows warning, 3 tests failed.

2017-08-03 Thread Roshani Thapa
i was testing matpower, but the following warning was displayed, should i copy all the sub-directoris of matpower/t to a different location? test_matpower t_test_fcns.ok t_nested_struct_copyok t_feval_w_path..not ok # Ran 20 of 20 tests: 19 passed, 1 failed t_mpoption..

Calculation of r, x, b from PF results

2017-08-03 Thread Ehsan Hejri
Hi community, I have access to the following data: 1. Topology (connections) 2. Voltage magnitude in all buses 3. Voltage angle in all buses 4. P and Q from (all transmission lines) 5. P and Q to (all transmission lines) 6. P and Q (Generation) 7. P and Q (Demands) Now i want to calculate r, x an

RE: Calculation of r, x, b from PF results

2017-08-03 Thread Sarmad Hanif
Aren’t these values (in lumped form, which I guess you require) already defined in the branch data of the mpc case files ? From: bounce-121697935-74036...@list.cornell.edu [mailto:bounce-121697935-74036...@list.cornell.edu] On Behalf Of Ehsan Hejri Sent: Thursday, 3 August, 2017 7:02 PM To: MATP

Re: Calculation of r, x, b from PF results

2017-08-03 Thread Ehsan Hejri
Yes I need lumped form. I have only PF results and there is no data for branches apart from their configurations (How the buses connect together) On Thu, Aug 3, 2017 at 3:44 PM, Sarmad Hanif wrote: > Aren’t these values (in lumped form, which I guess you require) already > defined in the branch

Re: Calculation of r, x, b from PF results

2017-08-03 Thread Abhyankar, Shrirang G.
This is an inverse problem. You'll need to use a nonlinear least squares solver (lsqnonlin in MATLAB) to compute the line parameters given the different measurements. MATPOWER does not have an explicit function to do what you want, but you can use its different functions (or extract code from th

Re: branch_lims

2017-08-03 Thread Abhyankar, Shrirang G.
That's great! This would be a good addition to runcpf. You can contribute directly to MATPOWER https://github.com/MATPOWER/matpower/blob/master/CONTRIBUTING.md. Alternately, you can send me (cc Ray) the code offline. Thanks, Shri On Aug 3, 2017, at 1:35 AM, Ahmad Sadiq Abubakar mailto:ahmad.abu

RE: Calculation of r, x, b from PF results

2017-08-03 Thread Bone, Gorazd
>From the magnitude and angle of voltages and the P and Q of transmission >lines you can calculate the currents flowing into the node at each of the >lines. From currents and bus voltage you can directly calculate R, X, B by >ohm's law. Od: bounce-121697935-78

RE: Calculation of r, x, b from PF results

2017-08-03 Thread Sarmad Hanif
Hi guys, Help me understand this: if Ehsan doesn't have any grid data and just some measurements ? then solution suggested using ohm's law, inverse problem etc. applicable; else if Ehsan has grid data (assuming in matpower format), then aren't the values listed in BR_R, BR_X and BR_B in mpc.bran

AW: Re: branch_lims

2017-08-03 Thread wgneu.katzenma...@t-online.de
Hi , can u send me them. I will try whether it helps. Thanks Gesendet mit der Telekom Mail App --- Original-Nachricht --- Von: Ahmad Sadiq Abub

RE: Calculation of r, x, b from PF results

2017-08-03 Thread Bone, Gorazd
The R, X and B are also present in results.branch. I don't know what the reason might be that only the listed values are available. Od: bounce-121698445-78499...@list.cornell.edu [bounce-121698445-78499...@list.cornell.edu] v imenu Sarmad Hanif [sarmad.ha...@tu

RE: Calculation of r, x, b from PF results

2017-08-03 Thread ehsan.hejri.edu
Hi all and thank you for all your answers. The results are not in Matpower format. I have only results of a power flow. Since the number of nodes are high I was asking for a reverse pf function to give me r x and b faster. I think I need to write some codes for it. Thanks again Sent from my Sa