Commit d25d3f23 by dongshufeng

小修改

parent aa3cf4a4
...@@ -69,5 +69,4 @@ fn make_y_bus(baseMVA, bus, branch) { ...@@ -69,5 +69,4 @@ fn make_y_bus(baseMVA, bus, branch) {
} }
return Ybus; return Ybus;
} }
\ No newline at end of file
...@@ -48,7 +48,7 @@ fn newtonpf(Ybus, Sbus, V0, ref, pv, pq, mpopt) { ...@@ -48,7 +48,7 @@ fn newtonpf(Ybus, Sbus, V0, ref, pv, pq, mpopt) {
nb = length(V); nb = length(V);
npv = length(pv); npv = length(pv);
npq = length(pq); npq = length(pq);
j1 = 0; j2 = npv; // j1:j2 - V angle of pv buses j1 = 0; j2 = npv; // j1:j2 - V angle of pv buses
j3 = j2; j4 = j2 + npq; // j3:j4 - V angle of pq buses j3 = j2; j4 = j2 + npq; // j3:j4 - V angle of pq buses
j5 = j4; j6 = j4 + npq; // j5:j6 - V mag of pq buses j5 = j4; j6 = j4 + npq; // j5:j6 - V mag of pq buses
pv_pq_i = horzcat(pv, pq); pv_pq_i = horzcat(pv, pq);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论