idx_disp.m

来自「求最优潮流的matlab程序」· M 代码 · 共 31 行

M
31
字号
function [QUANTITY, PRICE, FCOST, VCOST, SCOST, PENALTY] = idx_disp%IDX_DISP   Defines constants for named column indices to dispatch matrix.%   [QUANTITY, PRICE, FCOST, VCOST, SCOST, PENALTY] = idx_disp%%   The index, name and meaning of each column of the dispatch matrix is given%   below:% %   columns 1-6%    1  QUANTITY    quantity produced by generator in MW%    2  PRICE       market price for power produced by generator in $/MWh%    3  FCOST       fixed cost in $/MWh%    4  VCOST       variable cost in $/MWh%    5  SCOST       startup cost in $%    6  PENALTY     penalty cost in $ (not used)%   MATPOWER%   $Id: idx_disp.m,v 1.4 2004/12/15 22:46:31 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 the indicesQUANTITY        = 1;    %% quantity produced by generator in MWPRICE           = 2;    %% market price for power produced by generator in $/MWhFCOST           = 3;    %% fixed cost in $/MWhVCOST           = 4;    %% variable cost in $/MWhSCOST           = 5;    %% startup cost in $PENALTY         = 6;    %% penalty cost in $ (not used)return;

⌨️ 快捷键说明

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