Re: Finding the Jacobian matrix and Ybus

2020-09-14 Thread Kaled Zareer
Thank you Dr. Ray. I tried the command Jac = makeJac(mpci, 1) for the 118-bus system. I got a (236 X 236) matrix. You know that there are slack bus, PV buses, and PQ buses in the system. Thus, my assumption is to get a matrix with a smaller size. Is there any command to consider this point?  Th

Re: Optimal power flow with DG connected

2020-09-14 Thread Surbhi Aggarwal
Even after doing everything, this error prompts out. Please help me out with this issue. Warning: Matrix is singular to working precision. > In mplinsolve (line 75) In newtonpf (line 110) In runpf (line 260) Regards Surbhi Aggarwal On Mon, Sep 14, 2020 at 7:31 PM Ray Daniel Zimmerman wrot

Re: Finding the Jacobian matrix and Ybus

2020-09-14 Thread Ray Daniel Zimmerman
Try this … mpc = loadcase(); mpci = ext2int(mpc); % convert to internal bus numbering Ybus = makeYbus(mpci); Jac = makeJac(mpci, 1); — Ray On Sep 14, 2020, at 2:09 AM, Kaled Zareer mailto:kaled...@yahoo.com>> wrote: Hi all, I am a beginner at Matpower. I read the manual but I am confused a

Re: Optimal power flow with DG connected

2020-09-14 Thread Ray Daniel Zimmerman
You would have to confirm the cause of the non-convergence before drawing any conclusions. You may find FAQ #5 helpful. Ray On Sep 12, 2020, at 6:43 AM, Surbhi Aggarwal mailto:surbhiaggarwa...@gmail.com>> wrote: Hello If the system does not conv

Finding the Jacobian matrix and Ybus

2020-09-14 Thread Kaled Zareer
Hi all,  I am a beginner at Matpower. I read the manual but I am confused about how we can obtain the jacobian matrix and Ybus. I see that there are Power Flow Derivative Functions, but I don't know how I can use them. I appreciate if someone provides a simple example.  Thanks in advance Khaled