dwavesystems / dwavesystems/dimod

Print more information when user define `BinaryQuadraticModel` on the RHS of an equation

Open
#986 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
143
Forks
91
Avg merge
1h 24m
Merged PRs (30d)
3

Description

More information is needed when user define constraints that has `BinaryQuadraticModel` as RHS
```
x = dimod.Binary('x')
y = dimod.Binary('y')
cqm = dimod.CQM()
cqm.add_constraint(x <= y)

TypeError: '<=' not supported between instances of 'BinaryQuadraticModel' and 'BinaryQuadraticModel'
```

From this error it is not clear that RHS should only be constant.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.