⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fm_pmurec.m

📁 电力系统的psat
💻 M
字号:
function [bus_pmu, bus2] = fm_pmurec(bus1,bus2,bus0)% FM_PMUREC routine for PMU placement%% (...) = FM_PMUREC(...)%% This routine is called by FM_PMULOC%%Author:    Federico Milano%Date:      11-Nov-2002%Version:   1.0.0%%E-mail:    fmilano@thunderbox.uwaterloo.ca%Web-site:  http://thunderbox.uwaterloo.ca/~fmilano%% Copyright (C) 2002-2005 Federico Milano%% This toolbox is free software; you can redistribute it and/or modify% it under the terms of the GNU General Public License as published by% the Free Software Foundation; either version 2.0 of the License, or% (at your option) any later version.%% This toolbox is distributed in the hope that it will be useful, but% WITHOUT ANY WARRANTY; without even the implied warranty of% MERCHANDABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU% General Public License for more details.%% You should have received a copy of the GNU General Public License% along with this toolbox; if not, write to the Free Software% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,% USA.global Bus%bus2(Bus.int(bus1)) = 1;b = fm_busidx(bus1);if length(b) == 1  bus_pmu = b;  bus2(Bus.int(b)) = 1;  returnendb1 = find(~bus2(Bus.int(b)));if isempty(b1)  bus_pmu = [];  returnelse  b = sort(b(b1));endbus2(Bus.int(b)) = ones(length(b),1);bb = [];for k = 1:length(b)  abb = fm_busidx(b(k));  abb = abb(find(~bus2(Bus.int(abb))));  bb = [bb; abb];endif isempty(bb); bus_pmu = []; return; endbb = sort(bb);num_bus = length(bb);nodi_el = [];for jjj = 1:num_bus-1  nodi_el = [nodi_el; jjj + find(bb([jjj+1:num_bus]) == bb(jjj))];endbb(nodi_el) = [];bb = bb(find(~bus2(Bus.int(bb))));bus2(Bus.int(bb)) = ones(length(bb),1);bus_pmu = sort(bb);

⌨️ 快捷键说明

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