dimod.binary.BinaryQuadraticModel.change_vartype#
- BinaryQuadraticModel.change_vartype(vartype: 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.