Home > matpower7.0 > lib > idx_ct.m

idx_ct

PURPOSE ^

IDX_CT Defines constants for named column indices to changes table

SYNOPSIS ^

function [CT_LABEL, CT_PROB, CT_TABLE, CT_TBUS, CT_TGEN, CT_TBRCH,CT_TAREABUS, CT_TAREAGEN, CT_TAREABRCH, CT_ROW, CT_COL, CT_CHGTYPE,CT_REP, CT_REL, CT_ADD, CT_NEWVAL, CT_TLOAD, CT_TAREALOAD,CT_LOAD_ALL_PQ, CT_LOAD_FIX_PQ, CT_LOAD_DIS_PQ, CT_LOAD_ALL_P,CT_LOAD_FIX_P, CT_LOAD_DIS_P, CT_TGENCOST, CT_TAREAGENCOST,CT_MODCOST_F, CT_MODCOST_X] = idx_ct

DESCRIPTION ^

IDX_CT  Defines constants for named column indices to changes table

   [CT_LABEL, CT_PROB, CT_TABLE, CT_TBUS, CT_TGEN, CT_TBRCH, CT_TAREABUS, ...
   CT_TAREAGEN, CT_TAREABRCH, CT_ROW, CT_COL, CT_CHGTYPE, CT_REP, ...
   CT_REL, CT_ADD, CT_NEWVAL, CT_TLOAD, CT_TAREALOAD, CT_LOAD_ALL_PQ, ...
   CT_LOAD_FIX_PQ, CT_LOAD_DIS_PQ, CT_LOAD_ALL_P, CT_LOAD_FIX_P, ...
   CT_LOAD_DIS_P, CT_TGENCOST, CT_TAREAGENCOST, CT_MODCOST_F, ...
   CT_MODCOST_X] = idx_ct;

 CT_LABEL: column of changes table where the change set label is stored

 CT_PROB:  column of changes table where the probability of the
           change set is stored

 CT_TABLE: column of the changes table where the type of system data 
           table to be modified is stored;
           type CT_TBUS indicates bus table
           type CT_TGEN indicates gen table
           type CT_TBRCH indicates branch table
           type CT_TLOAD indicates a load modification (bus and/or gen tables)
           type CT_TAREABUS indicates area-wide change in bus table
           type CT_TAREAGEN indicates area-wide change in generator table
           type CT_TAREABRCH indicates area-wide change in branch table
           type CT_TAREALOAD indicates area-wide change in load
                             (bus and/or gen tables)

 CT_ROW:   column of changes table where the row number in the data
           table to be modified is stored. A value of "0" in this column
           has the special meaning "apply to all rows".  For an area-wide
           type of change, the area number is stored here instead.

 CT_COL:   column of changes table where the number of the column in
           the data table to be modified is stored
           For CT_TLOAD and CT_TAREALOAD, the value entered in this column
           is one of the following codes (or its negative), rather than
           a column index:
           type CT_LOAD_ALL_PQ modify all loads, real & reactive
           type CT_LOAD_FIX_PQ modify only fixed loads, real & reactive
           type CT_LOAD_DIS_PQ modify only dispatchable loads, real & reactive
           type CT_LOAD_ALL_P modify all loads, real only
           type CT_LOAD_FIX_P modify only fixed loads, real only
           type CT_LOAD_DIS_P modify only dispatchable loads, real only
           If the negative of one of these codes is used, then any affected
           dispatchable loads will have their costs scaled as well.
           For CT_TGENCOST and CT_TAREAGENCOST, in addition to an actual
           column index, this value can also take one of the following
           codes to indicate a scaling (CT_REL change type) or shifting
           (CT_ADD change type) of the specified cost functions:
           type CT_MODCOST_F scales or shifts the cost function vertically
           type CT_MODCOST_X scales or shifts the cost function horizontally
           See also MODCOST.

 CT_CHGTYPE: column of changes table where the type of change to
           be made is stored:
           type CT_REP replaces old value by value in CT_NEWVAL column
           type CT_REL multiplies old value by factor in CT_NEWVAL column
           type CT_ADD adds value in CT_NEWVAL column to old value

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [CT_LABEL, CT_PROB, CT_TABLE, CT_TBUS, CT_TGEN, CT_TBRCH, ...
0002     CT_TAREABUS, CT_TAREAGEN, CT_TAREABRCH, CT_ROW, CT_COL, CT_CHGTYPE, ...
0003     CT_REP, CT_REL, CT_ADD, CT_NEWVAL, CT_TLOAD, CT_TAREALOAD, ...
0004     CT_LOAD_ALL_PQ, CT_LOAD_FIX_PQ, CT_LOAD_DIS_PQ, CT_LOAD_ALL_P, ...
0005     CT_LOAD_FIX_P, CT_LOAD_DIS_P, CT_TGENCOST, CT_TAREAGENCOST, ...
0006     CT_MODCOST_F, CT_MODCOST_X] = idx_ct
0007 %IDX_CT  Defines constants for named column indices to changes table
0008 %
0009 %   [CT_LABEL, CT_PROB, CT_TABLE, CT_TBUS, CT_TGEN, CT_TBRCH, CT_TAREABUS, ...
0010 %   CT_TAREAGEN, CT_TAREABRCH, CT_ROW, CT_COL, CT_CHGTYPE, CT_REP, ...
0011 %   CT_REL, CT_ADD, CT_NEWVAL, CT_TLOAD, CT_TAREALOAD, CT_LOAD_ALL_PQ, ...
0012 %   CT_LOAD_FIX_PQ, CT_LOAD_DIS_PQ, CT_LOAD_ALL_P, CT_LOAD_FIX_P, ...
0013 %   CT_LOAD_DIS_P, CT_TGENCOST, CT_TAREAGENCOST, CT_MODCOST_F, ...
0014 %   CT_MODCOST_X] = idx_ct;
0015 %
0016 % CT_LABEL: column of changes table where the change set label is stored
0017 %
0018 % CT_PROB:  column of changes table where the probability of the
0019 %           change set is stored
0020 %
0021 % CT_TABLE: column of the changes table where the type of system data
0022 %           table to be modified is stored;
0023 %           type CT_TBUS indicates bus table
0024 %           type CT_TGEN indicates gen table
0025 %           type CT_TBRCH indicates branch table
0026 %           type CT_TLOAD indicates a load modification (bus and/or gen tables)
0027 %           type CT_TAREABUS indicates area-wide change in bus table
0028 %           type CT_TAREAGEN indicates area-wide change in generator table
0029 %           type CT_TAREABRCH indicates area-wide change in branch table
0030 %           type CT_TAREALOAD indicates area-wide change in load
0031 %                             (bus and/or gen tables)
0032 %
0033 % CT_ROW:   column of changes table where the row number in the data
0034 %           table to be modified is stored. A value of "0" in this column
0035 %           has the special meaning "apply to all rows".  For an area-wide
0036 %           type of change, the area number is stored here instead.
0037 %
0038 % CT_COL:   column of changes table where the number of the column in
0039 %           the data table to be modified is stored
0040 %           For CT_TLOAD and CT_TAREALOAD, the value entered in this column
0041 %           is one of the following codes (or its negative), rather than
0042 %           a column index:
0043 %           type CT_LOAD_ALL_PQ modify all loads, real & reactive
0044 %           type CT_LOAD_FIX_PQ modify only fixed loads, real & reactive
0045 %           type CT_LOAD_DIS_PQ modify only dispatchable loads, real & reactive
0046 %           type CT_LOAD_ALL_P modify all loads, real only
0047 %           type CT_LOAD_FIX_P modify only fixed loads, real only
0048 %           type CT_LOAD_DIS_P modify only dispatchable loads, real only
0049 %           If the negative of one of these codes is used, then any affected
0050 %           dispatchable loads will have their costs scaled as well.
0051 %           For CT_TGENCOST and CT_TAREAGENCOST, in addition to an actual
0052 %           column index, this value can also take one of the following
0053 %           codes to indicate a scaling (CT_REL change type) or shifting
0054 %           (CT_ADD change type) of the specified cost functions:
0055 %           type CT_MODCOST_F scales or shifts the cost function vertically
0056 %           type CT_MODCOST_X scales or shifts the cost function horizontally
0057 %           See also MODCOST.
0058 %
0059 % CT_CHGTYPE: column of changes table where the type of change to
0060 %           be made is stored:
0061 %           type CT_REP replaces old value by value in CT_NEWVAL column
0062 %           type CT_REL multiplies old value by factor in CT_NEWVAL column
0063 %           type CT_ADD adds value in CT_NEWVAL column to old value
0064 
0065 %   MATPOWER
0066 %   Copyright (c) 2000-2016, Power Systems Engineering Research Center (PSERC)
0067 %   by Carlos E. Murillo-Sanchez, PSERC Cornell & Universidad Nacional de Colombia
0068 %   and Ray Zimmerman, PSERC Cornell
0069 %
0070 %   This file is part of MATPOWER.
0071 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0072 %   See https://matpower.org for more info.
0073 
0074 %% column labels for changes table
0075 CT_LABEL    = 1;    %% change set label
0076 CT_PROB     = 2;    %% change set probability
0077 CT_TABLE    = 3;    %% type of table to be modified (see possible values below)
0078 CT_ROW      = 4;    %% number of the row to be modified (0 means all rows)
0079 CT_COL      = 5;    %% number of the column to be modified
0080                     %% (for some values in CT_TABLE column, this can be a
0081                     %% special code instead of an actual column index)
0082 CT_CHGTYPE  = 6;    %% type of parameter modification to be made
0083                     %% (see possible values below)
0084 CT_NEWVAL   = 7;    %% quantity to use for replacement value, scale factor
0085                     %% or shift amount
0086 
0087 %% named values for CT_TABLE entry
0088 CT_TBUS         = 1;    %% bus table
0089 CT_TGEN         = 2;    %% gen table
0090 CT_TBRCH        = 3;    %% branch table
0091 CT_TAREABUS     = 4;    %% area-wide change in bus table
0092 CT_TAREAGEN     = 5;    %% area-wide change in gen table
0093 CT_TAREABRCH    = 6;    %% area-wide change in branch table
0094 CT_TLOAD        = 7;    %% single bus load change
0095 CT_TAREALOAD    = 8;    %% area-wide bus load change
0096 CT_TGENCOST     = 9;    %% gencost table
0097 CT_TAREAGENCOST = 10;   %% area-wide change in gencost table
0098 
0099 %% named values for CT_CHGTYPE entry
0100 CT_REP      = 1;        %% replace old value with new one in column CT_NEWVAL
0101 CT_REL      = 2;        %% multiply old value by factor in column CT_NEWVAL
0102 CT_ADD      = 3;        %% add value in column CT_NEWVAL to old value
0103 
0104 %% codes for CT_COL entry when CT_TABLE entry is CT_TLOAD or CT_TAREALOAD
0105 CT_LOAD_ALL_PQ = 1;     %% all loads, real and reactive
0106 CT_LOAD_FIX_PQ = 2;     %% only fixed loads, real and reactive
0107 CT_LOAD_DIS_PQ = 3;     %% only dispatchable loads, real and reactive
0108 CT_LOAD_ALL_P  = 4;     %% all loads, real only
0109 CT_LOAD_FIX_P  = 5;     %% only fixed loads, real only
0110 CT_LOAD_DIS_P  = 6;     %% only dispatchable loads, real only
0111 
0112 %% codes for CT_COL entry when CT_TABLE entry is CT_TGENCOST or CT_TAREAGENCOST
0113 CT_MODCOST_F = -1;      %% scale or shift cost function vertically
0114 CT_MODCOST_X = -2;      %% scale or shift cost function horizontally

Generated on Mon 24-Jun-2019 15:58:45 by m2html © 2005