You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<snip>", line 5, in <module>
y = x / 3.0 # fails
~~^~~~~
TypeError: unsupported operand type(s) for /: 'LpVariable' and 'float'
I can't remember what the broken division issue was. In this case it is relatively straightforward that LpVariable only implements __div__ instead of __truediv__.
Details for the issue
What did you do?
What did you expect to see?
The code should run successfully
What did you see instead?
The code failed with
I think we're just missing
from LpVariable?
Useful extra information
What operating system are you using?
I'm using python version:
I installed PuLP via:
Did you also
The text was updated successfully, but these errors were encountered: