dimod.ConstrainedQuadraticModel.add_constraint

ConstrainedQuadraticModel.add_constraint(data, *args, **kwargs) Hashable[source]

Add a constraint to the model.

This method dispatches to one of several specific methods based on the type of the first argument. For a detailed description of the accepted argument types, see add_constraint_from_model(), add_constraint_from_comparison(), and add_constraint_from_iterable().