opf_form.m
来自「Matlab潮流程序非常好用的程式 欢迎大家来使用」· M 代码 · 共 16 行
M
16 行
function code = opf_form(alg)
%OPF_FORM Which OPF formulation is used by alg.
% code = opf_form(alg) returns a formulation code given an algorithm code.
% The codes are:
% 1 - standard, polynomial costs handled in the objective function
% 2 - CCV, piece-wise linear costs handled via constrainted cost vars
% MATPOWER Version 2.0
% by Ray Zimmerman, PSERC Cornell 12/23/97
% Copyright (c) 1997 by Power System Engineering Research Center (PSERC)
% See http://www.pserc.cornell.edu/ for more info.
code = fix(alg / 100);
return;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?