?? gams.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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -