Re: Jacobian matrix values

2015-06-02 Thread Hiranya Seneviratne
Dear Shri, Thank you. For each bus the jacobian is stored in the way you mentioned? But how would I extract it, for example in the 9 bus system if I want the 4th element of each jacobian matrix for all 9 busses which elements will this be in the full jacobian matrix? Hiranya Sent from my iPh

Re: Jacobian matrix values

2015-06-02 Thread Abhyankar, Shrirang G.
The Jacobian is stored in a sparse matrix format. The Jacobian values not displayed are all zeros. MATPOWER orders the Jacobian as follows: J = [dP_dVa dP_dVm dQ_dVa dQ_dVm] where P and Q are the real and reactive power mismatch equations and Va, Vm are the voltage angles and magnitude

Re: Jacobian matrix values

2015-06-02 Thread Hiranya Seneviratne
This is what I used in order to find the jacobian values. loadcase('case9') x = runpf(case9) fullJac = 1; [J, Ybus, Yf, Yt] = makeJac(x.baseMVA, x.bus, x.branch, x.gen, fullJac) On 2 Jun 2015, at 17:08, Abhyankar, Shrirang G. wrote: > fullJac is a flag that you can set to either access the ful

Re: Jacobian matrix values

2015-06-02 Thread Hiranya Seneviratne
Dear Shri, Thanks a lot. I have tried finding the jacobian matrix when i ran the power flow on case 9 in the example cases given in matlab. I assigned fullJac to be = 1. However, I obtained the following values for J: J = (1,1) 17.1204 (4,1) -17.1204 (10,1) 0.7195 (13,1)

Load shedding in MATPOWER

2015-06-02 Thread Nandu Balachandran
Dear Dr. Zimmerman, When the OPF solution do not converge (because of excess load compared to generation or transmission line power limits), I wish to have a load shedding so that the OPF gives a solution. What is the best way to achieve load shedding in Matpower? Thank You, Nandu Balachandra

Re: Jacobian matrix values

2015-06-02 Thread Abhyankar, Shrirang G.
fullJac is a flag that you can set to either access the full Jacobian matrix or a partial Jacobian. With fullJac = 1, the routine returns the full Jacobian that has partial derivatives of the power flow equations w.r.t to the voltage magnitudes and angles at all buses. If fullJac = 0 or not given,

Re: Power factor

2015-06-02 Thread Abhyankar, Shrirang G.
load p.f. = cos(atan(Q/P)). By changing the P and Q values, you should be able to set the desired power factor. Shri -Original Message- From: Hiranya Seneviratne Reply-To: MATPOWER discussion forum Date: Tuesday, June 2, 2015 at 10:43 AM To: MATPOWER discussion forum Subject: Re: Powe

Re: Power factor

2015-06-02 Thread Hiranya Seneviratne
Dear Shri, Thanks a lot. Is it possible to change the power factor as well? I thought only the magnitudes of p and q can be changed in that manner? Thank you Sent from my iPhone > On 2 Jun 2015, at 16:31, "Abhyankar, Shrirang G." wrote: > > Before running the power flow, you can change the

Re: Jacobian matrix values

2015-06-02 Thread Hiranya Seneviratne
Thank you. However what is fulljac? As I am unable to find the value for that. Thank you Sent from my iPhone > On 2 Jun 2015, at 16:29, "Abhyankar, Shrirang G." wrote: > > http://www.pserc.cornell.edu//matpower/docs/ref/matpower5.1/makeJac.html > > > -Original Message- > From: Hiran

Re: Power factor

2015-06-02 Thread Abhyankar, Shrirang G.
Before running the power flow, you can change the load P and Q values in the bus data. Shri -Original Message- From: Hiranya Seneviratne Reply-To: MATPOWER discussion forum Date: Tuesday, June 2, 2015 at 6:17 AM To: MATPOWER discussion forum Subject: Power factor >Dear Ray, > >Is it

Re: Jacobian matrix values

2015-06-02 Thread Abhyankar, Shrirang G.
http://www.pserc.cornell.edu//matpower/docs/ref/matpower5.1/makeJac.html -Original Message- From: Hiranya Seneviratne Reply-To: MATPOWER discussion forum Date: Tuesday, June 2, 2015 at 4:04 AM To: MATPOWER discussion forum Subject: Jacobian matrix values >Dear Ray, >Is it possible to

Power factor

2015-06-02 Thread Hiranya Seneviratne
Dear Ray, Is it possible to change the load power factor in matlab when running a power flow simulation? Thank you Hiranya

Jacobian matrix values

2015-06-02 Thread Hiranya Seneviratne
Dear Ray, Is it possible to find out the values of the jacobian matrix once the power flow is calculated in Matpower? Thank you Hiranya Sent from my iPhone