dwave-ocean-sdk icon indicating copy to clipboard operation
dwave-ocean-sdk copied to clipboard

Error in one Diet Planning code line

Open JoelPasvolsky opened this issue 10 months ago • 0 comments

Description Diet Planning example line

quantities[0] * quantities[1]

needs to be updated to use non-real quantities

To Reproduce

>>> quantities[0] * quantities[1]
...
ValueError: REAL variables (e.g. 'rice') cannot have interactions

Expected behavior Use the int variables or note the error

Environment:

  • OS: WIN10
  • Python version: 3.9
  • Ocean SDK version: 6.9.0

Additional context Reported by user

JoelPasvolsky avatar Apr 11 '24 20:04 JoelPasvolsky