dimod.binary.BinaryQuadraticModel.change_vartype¶
- BinaryQuadraticModel.change_vartype(vartype: dimod.vartypes.Vartype, inplace: bool = True) BinaryQuadraticModel [source]¶
Return a binary quadratic model with the specified vartype.
- Parameters
- Returns
A binary quadratic model with the specified vartype.