idx_cost.m

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

M
31
字号
function [PW_LINEAR, POLYNOMIAL, MODEL, STARTUP, SHUTDOWN, N, COST] = idx_cost%IDX_COST   Defines variables for column indices to gencost.%   [PW_LINEAR, POLYNOMIAL, MODEL, STARTUP, SHUTDOWN, N, COST] = idx_cost%   MATPOWER%   $Id: idx_cost.m,v 1.4 2004/08/23 20:56:29 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.%% define cost modelsPW_LINEAR   = 1;POLYNOMIAL  = 2;%% define the indicesMODEL       = 1;    %% cost model, 1 - piecewise linear, 2 - polynomial STARTUP     = 2;    %% startup cost in US dollarsSHUTDOWN    = 3;    %% shutdown cost in US dollarsN           = 4;    %% number breakpoints in piecewise linear cost function,                    %% or number of coefficients in polynomial cost functionCOST        = 5;    %% beginning of cost parameters,                    %% piecewise linear data as:                    %%      x0, y0, x1, y1, x2, y2, ...                    %% and polynomial data as:                    %%      c2, c1, c0                    %% where the polynomial is c2*P^2 + c1*P + c0                    %% note: polynomials can be of any degree, highest                    %% order coefficient always goes firstreturn;

⌨️ 快捷键说明

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