sharnett / tree-power-flow

Approximately compute the real power flow on a distribution (tree) network using dynamic programming.
0 stars 1 forks source link

write a function 'MATPOWER compare' #5

Closed sharnett closed 10 years ago

sharnett commented 10 years ago

Similar to the pretty print candidate function. It writes out

and should be easy to compare/contrast with the branch results from matpower.

sharnett commented 10 years ago

I've got something that meets the above spec, but it'd probably be better to have it do a proper comparison. So the appropriate values are side by side, maybe with differences or ratios too.

sharnett commented 10 years ago

When creating the tree representation in matlab, do a final runpf on the tree. If it doesn't converge, mark it somehow. If it does, save the resulting solution instead of the unsolved case. (I believe the result of runpf is a valid matpower case that you can call savefile on).

sharnett commented 10 years ago

Almost done. Let's add voltages to the display too. And a header.

               1                2            81.20            81.21           -79.96           -80.07
               1                5           158.49           157.47          -146.41          -145.17
               2                3            98.26            98.37           -94.20           -94.20
               4                5          -102.39          -101.56           103.84           103.09
               4                7            54.59            53.76           -54.59           -53.76
               5                6            34.97            34.49           -34.97           -34.49
               6               11             3.58             3.51            -3.50            -3.50
               6               12             6.54             6.14            -6.10            -6.10
               6               13            13.65            13.63           -13.50           -13.50
               7                8             0.00             0.00            -0.00            -0.00
               7                9            54.59            53.76           -54.59           -53.76
               9               10             9.86             9.04            -9.00            -9.00
               9               14            15.23            15.22           -14.90           -14.90
sharnett commented 10 years ago

Completed with fe4841ad2b2b515b5d52f0c8f7e2327acd992fbe