dimod.ConstrainedQuadraticModel.lower_bound¶
- ConstrainedQuadraticModel.lower_bound()[source]¶
Return the lower bound on the specified variable.
- Parameters
v – Variable label for a variable in the model.
Examples
>>> i = dimod.Integer("i", lower_bound=3) >>> j = dimod.Integer("j", upper_bound=3) >>> cqm = dimod.ConstrainedQuadraticModel() >>> cqm.add_constraint_from_comparison(i + j >= 4, label="Lower limit") 'Lower limit' >>> cqm.lower_bound("i") 3.0