dimod.binary.BinaryQuadraticModel.is_equal

BinaryQuadraticModel.is_equal(other: Union[dimod.binary.binary_quadratic_model.BinaryQuadraticModel, dimod.quadratic.quadratic_model.QuadraticModel, int, float, numpy.number]) bool[source]

Return True if the given model has the same variables, vartypes and biases.