Commit 2b69b5cd by Lian-runzhe

状态估计修改

parent 4e187859
...@@ -56,10 +56,10 @@ if ~~success{ ...@@ -56,10 +56,10 @@ if ~~success{
println('State Estimation input data are not complete or sufficient!'); println('State Estimation input data are not complete or sufficient!');
} }
type_initialguess = 2; type_initialguess = 2; // 当type_initialguess=3时,需要同时给V0
V0 = [[1], [1.02], [1.02]]; //V0 = [[1], [1.02], [1.02]];
[baseMVA, bus, gen, branch, success, z, z_est, error_sqrsum] = run_se(type_initialguess, V0); [baseMVA, bus, gen, branch, success, z, z_est, error_sqrsum] = run_se(type_initialguess, []);
assert_relative_eq(baseMVA, 1000); assert_relative_eq(baseMVA, 1000);
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
// type_initialguess: 1 - 从案例数据获取初始猜测值 // type_initialguess: 1 - 从案例数据获取初始猜测值
// 2 - 平启动 // 2 - 平启动
// 3 - 从输入获取 // 3 - 从输入获取
//
// 当type_initialguess=3时,需要同时给V0_in
fn getV0(bus, gen, type_initialguess, V0_in) { fn getV0(bus, gen, type_initialguess, V0_in) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论