VarDict1D#

class VarDict1D[source]#

This class is not meant to be instantiated; VarDict1D is built through the opti_extensions.docplex.add_variables function.

Methods

VarDict1D.dot(paramdict)

Sum the products of variables with corresponding coef from ParamDict1D, in an expression.

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.

VarDict1D.sum()

Sum all variables in an expression.

VarDict1D.sum_squares()

Sum squares of all variables in an expression.

Attributes

VarDict1D.key_name

Name to refer to 1-dim scalar keys.

VarDict1D.model

The DOcplex model associated with the variables.

VarDict1D.value_name

Name to refer to Dict values.

VarDict1D.vartype

The DOcplex VarType corresponding to the variables.