0.10.14
New Features
- Add
Polynomial
todimod.typing
.
- Add
Comparison.to_polystring()
method.
- Printing
Comparison
objects now returns an equation representation of the comparison as a string.
- Add
ConstrainedQuadraticModel.relabel_constraints()
method. See #1066.
- Add
ConstrainedQuadraticModel.remove_constraint()
method. See #1104.
-
Add methods to report memory usage of quadratic models:
- Add
QuadraticModel.nbytes()
method. - Add
BinaryQuadraticModel.nbytes()
method. - Add
QuadraticModel::nbytes()
method to C++ the code. - Add
BinaryQuadraticModel::nbytes()
method to C++ the code.
See #668
- Add
Deprecation Notes
- Deprecate
cls
parameter indimod.generators.random.gnm_random_bqm()
,dimod.generators.random.gnp_random_bqm()
,dimod.generators.random.uniform()
,dimod.generators.random.ran_r()
,dimod.generators.random.randint()
, anddimod.generators.random.doped()
.
Bug Fixes
Comparison.__repr__()
now correctly returns a representation that can be passed toeval()
.
- Fix
dimod.typing.Bias
to correctly excludenumpy.complexfloating
.
- Attempting to relabel two model variables to the same target will now correctly raise a
ValueError
. See #1110.