opf_form.m

来自「以上所传的内容为电力系统比较全面的分析程序,才用的是matlab编写m的文件」· M 代码 · 共 18 行

M
18
字号
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%       5 - generalized, includes both of above and more%   MATPOWER%   $Id: opf_form.m,v 1.4 2004/08/23 20:56:49 ray Exp $%   by Ray Zimmerman, PSERC Cornell%   Copyright (c) 1996-2004 by Power System Engineering Research Center (PSERC)%   See http://www.pserc.cornell.edu/matpower/ for more info.code = fix(alg / 100);return;

⌨️ 快捷键说明

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