VarDictND#
- class VarDictND[source]#
This class is not meant to be instantiated; VarDictND is built through the
opti_extensions.docplex.add_variablesfunction.Methods
VarDictND.dot(paramdict)Sum the products of variables with corresponding coef from ParamDictND, in an expression.
VarDictND.get(key[, default])Get the variable for the specified key, or the default if not found.
VarDictND.lookup(*key)Get the variable for the specified key, or zero if it is not found.
VarDictND.subset_keys(*pattern)Get a subset of the N-dim tuple keys of the Dict with a wildcard pattern.
VarDictND.subset_values(*pattern)Get Dict values for all keys that match the wildcard pattern.
VarDictND.sum(*pattern)Sum all variables, or a subset based on wildcard pattern, in an expression.
VarDictND.sum_squares(*pattern)Sum squares of all variables, or a subset based on wildcard pattern, in an expression.
Attributes
Names to refer to each dimension of N-dim tuple keys.
The DOcplex model associated with the variables.
Name to refer to Dict values.
The DOcplex VarType corresponding to the variables.