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

📄 gams.m

📁 电力系统分析计算程序
💻 M
字号:
function [Gh,Bh,Ghc,Bhc] = gams(a,method,Gh,Bh,Ghc,Bhc)global Bus GAMS Settingsif ~a.n, return, endnb = Bus.n;if method ~= 1  Gh = Gh + sparse(a.bus,a.bus,a.u.*a.con(:,5),nb,nb);  Bh = Bh + sparse(a.bus,a.bus,a.u.*a.con(:,6),nb,nb);end  if method == 4 | method == 6 | method == 7  Ghc = Ghc + sparse(a.bus,a.bus,a.u.*a.con(:,5),nb,nb);  Bhc = Bhc + sparse(a.bus,a.bus,a.u.*a.con(:,6),nb,nb);end

⌨️ 快捷键说明

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