# Re: DC State estimation in matpower

```yes, but Bbus is totally different with my jacobian.
```
```
Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Saeed Ahmed <saeed.ahme...@gmail.com>
Date: 4/17/18  11:12 AM  (GMT+09:00) To: MATPOWER discussion forum
<matpowe...@list.cornell.edu> Subject: Re: DC State estimation in matpower
Did you try this function for calculating the H Matrix ....
[Bbus, Bf, Pbusinj, Pfinj] = makeBdc(mpc.baseMVA, mpc.bus, mpc.branch);

RegardsSaeed Ahmed

On 13 April 2018 at 23:09, Saeed Ahmed <saeed.ahme...@gmail.com> wrote:
The best i can do  is to share a code with you... This code estimates the power
flow using  AC  estimation criteria...
You have to modify it according to your needs for DC state estimation ... When
you have any progress let me know... you have to try and don't give up...

RegardsSaeed Ahmed

On 13 April 2018 at 11:44, naime ahmadi <naimeahm...@gmail.com> wrote:
Thank you.
I want to calculate DC jacobuian matrix in matpower.
When I compare DC jacobuian matrix with Bbus, it is totally different.
How can I calculate
DC jacobuian matrix

?

On Tue, Apr 10, 2018 at 11:41 PM, Ray Zimmerman <r...@cornell.edu> wrote:
If you are looking for the sensitivities of power injections w.r.t. changes in
voltage angle, that would be the Bbus matrix from equation (3.32) in the User’s
Manual which is returned from makeBdc().
Ray

On Apr 10, 2018, at 5:04 AM, naime ahmadi <naimeahm...@gmail.com> wrote:
Thank you.
Actually I read that chapter. My problem is getting DC Jacobian matrix from
matpower.
Does j11 be the DC Jacobian matrix?
[j11,j12,j21,j22,J, Ybus, Yf, Yt] = makeJac(mpc);

On Mon, Apr 9, 2018 at 7:26 PM, Saeed Ahmed <saeed.ahme...@gmail.com> wrote:

First you need to understand the DC or linear State Estimation . You can find
Chap 2 of Ali Abur's Book.
After that you can use the built-in functions in MATPOWER for the formulation
of H vector and this all becomes simple once you have solid understanding of
theory...
RegardsSaeed Ahmed

On 9 April 2018 at 15:46, naime ahmadi <naimeahm...@gmail.com> wrote:

Hi,
How can I use matpower to calculate DC state estimation?
Kind Regards,
Naime

```