VarDict1D#
- class VarDict1D#
This class is not meant to be instantiated; VarDict1D is built through the docplex_extensions.add_variables function.
Methods
VarDict1D.get(key[, default])Get the variable for the specified key, or the default if not found.
VarDict1D.lookup(key)Get the variable for the specified key, or zero if it is not found.
Sum all variables in a linear expression.
Attributes
Name to refer to 1-dim scalar keys.
DOcplex model associated with the variables.
Name to refer to Dict values.
DOcplex VarType corresponding to the variables.