Yes. See help makeJac. The value of the second argument determines whether to 
return the full or reduced Jacobian.

So it sounds like you want to use …

Jac = makeJac(mpci);

Note, the second argument defaults to a false value.

  Ray


On Sep 15, 2020, at 1:12 AM, Kaled Zareer 
<[email protected]<mailto:[email protected]>> wrote:

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?

Thanks in advance

Khaled


On Monday, September 14, 2020, 10:04:50 AM EDT, Ray Daniel Zimmerman 
<[email protected]<mailto:[email protected]>> wrote:


Try this …

mpc = loadcase(<your case>);
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 
<[email protected]<mailto:[email protected]>> wrote:

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



Reply via email to