matpower中计算opf时如何设置收敛的精度?
求解答,加分! 99%的情况,使用默认的就可以。。。 回复 2# cxxgtxy你好活跃呀,哥们。谢谢你啦,昨天晚上我还用psat2.1.6试试了,现在决定还是用matpower可以实现了。thanks!
设置mpopt(20,16,21)即可
对应代码norm_grad < mpopt(20)) && (max_g < mpopt(16)) && (norm_dx < mpopt(21) 回复 3# 顾海飞
加分得给力,回答你的问题,都得不到多少专家分,还花不少时间。 回复 4# cxxgtxy
你说的这个是在哪个程序里面? 回复 6# 顾海飞
mpopt是个全局变量,对它进行设置就可以了 回复 7# cxxgtxy
好的,谢谢! 回复 7# cxxgtxy
如果我现在定义三节点中第三个节点为负荷节点,但是我现在在1和3节点之间增加一个辅助节点4,需要定义3和4节点为PV节点,我在原来的%% bus data%
bus_i
type
Pd
Qd
Gs
Bs
area
Vm
Va
baseKV
zone
Vmax
Vmin
mpc.bus = [
1
2
0
0
0
0
1
1.00
400
1
1.050.95;
2
3
0
0
0
01
1.00400
1
1.1
0.9;
3
1
200-10
30-20 0
0
1
1.00
400
1
1.00010.9999;
4 1 10 20 001 1.0040011.050.95;
];
%% generator data
%
bus
Pg
Qg
Qmax
Qmin
Vg
mBase
status
Pmax
Pmin
Pc1
Pc2
Qc1min
Qc1max
Qc2min
Qc2max
ramp_agc
ramp_10
ramp_30
ramp_q
apf
mpc.gen = [
1
25
0
80
-20
1
100
1
300
0
0
0
0
0
0
0
0
0
0
0
0;
2
80
0 150
-150
1
100
1
300 0
0
0
0
0
0
0
0
0
0
0
0;
];
我需要修改3节点和4节点的类型吗?和mpc.gen中需要修改吗? 这个,搞成竖的,别人没法看了
页:
[1]
2