dimod.QuadraticModel.is_equal

QuadraticModel.is_equal(other: Union[QuadraticModel, numbers.Number]) bool[source]

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

Parameters

other – Quadratic model to compare against.