bdmatrix.m

来自「电力系统分析计算程序」· M 代码 · 共 24 行

M
24
字号
function bdmatrix(a)global LA DAE LA.b_tcsc = [];  LA.d_tcsc = [];  if ~a.n  fm_disp('* * * No TCSC device found')  returnendix = find(a.con(:,3) == 1); % index - operation mode x constantip = find(a.con(:,3) == 2); % index - operation mode P constantFu = sparse(DAE.n,a.n);Gu = sparse(a.x0(ix),ix,a.u(ix),DAE.m,a.n) + ...    sparse(a.pref(ip),ip,a.u(ip),DAE.m,a.n);% B & D matrix for TCSC referencesLA.d_tcsc = -full(DAE.Gy\Gu);LA.b_tcsc = full(Fu + DAE.Fy*LA.d_tcsc);  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?