Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in one Diet Planning code line #292

Open
JoelPasvolsky opened this issue Apr 11, 2024 · 0 comments
Open

Error in one Diet Planning code line #292

JoelPasvolsky opened this issue Apr 11, 2024 · 0 comments

Comments

@JoelPasvolsky
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant