This function changes certain attributes for a decision variable without redefining the decision variable using CB.DefineDecVarND.
Before you call this function, the decision variable must exist and the simulation must be reset.
Table 175. CB.SetDecVar Parameters
Points to the decision variable cell with the data to change | |||
See Table 176 | |||
See Table 177 |
Table 176, following, describes the Index parameter.
Table 176. CB.SetDecVar Index Parameter Values — Required, Integer
Changes the step size for discrete decision variables, depending on Value. | ||
Supplies a list of possible values for cbDecType = Custom [4]. Decimals can be used |
Table 177, following, describes the Value parameter.
Table 177. CB.SetDecVar Value Parameter Values — Required, Variant
cbDecVarTypeContinuous = 0, cbDecVarTypeDiscrete = 1, cbDecVarTypeBinary = 2, cbDecVarTypeCategory = 3, cbDecVarTypeCustom = 4 | For a detailed description of each of these cbDecType settings, see CB.DefineDecVarND. For cbDecVarTypeCustom, a string of data must be supplied with Index = cbDecCustomData [7]. | |
True freezes the current decision variable. False unfreezes it, if frozen | ||
A list of at least two values separated by commas (,) or a reference to a range of cells containing these values; decimal values can be used. The range must be one-dimensional (adjoining cells in one row or one column). | Supplies a list of data for cbDecType = cbDecVarTypeCustom [4] |