function [n,idx,data] = gams(a) global Bus n = int2str(a.n); idx = sparse(a.bus,[1:a.n],1,Bus.n,a.n); data = zeros(Bus.n,1…
ISA+Bus 源代码
汇集 ISA+Bus 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
function p = base(p) global Bus Settings if ~p.n, return, end fm_errv(p.con(:,3),'PV Bus',p.bus); p.con(:,4) = p.con(:,4…
function [qmax,qmin] = pvlim(a,q) global Bus if ~a.n qmax = []; qmin = []; return end qmax = find(Bus.Qg(a.bus) >…
function a = add(a,data) global Bus newbus = Bus.int(round(data(1))); idx = findbus(a,newbus); if isempty(idx) a.n = …
function fm_phs(flag) %FM_PHS defines Phase Shifting Transformer % %Data Format Phs.con: % col #1: Bus 1 number % …
function fm_exload(flag) % FM_EXLOAD defines exponential recovery load % % FM_EXLOAD(FLAG) % FLAG = 0 -> initialization…
function rmpqgen(a) global Bus if ~a.n, return, end idx = find(a.gen); if isempty(idx), return, end Bus.Pl(a.bus(id…
function p = base(p) global Bus Settings if ~p.n, return, end fm_errv(p.con(:,3),'PQ Bus',p.bus); p.con(:,4) = p.con(:,4…
function addpqgen(a) global Bus if ~a.n, return, end idx = find(a.gen); if isempty(idx), return, end Bus.Pg(a.bus(i…
function a = add(a,data) global Bus newbus = Bus.int(round(data(1))); idx = findbus(a,newbus); if isempty(idx) a.n = …