-
Notifications
You must be signed in to change notification settings - Fork 54
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
Variable / scalar or LinearExpression / scalar is broken #57
Comments
This was referenced Nov 8, 2022
Indeed, this is again en example for unsafe operations. Easiest is to directly address it in #55 right? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just saw this example:
https://github.com/prakaa/Battery-Optimisation-Benchmarking/blob/master/battery_optimisation_benchmarking/python/linopy.ipynb
With the following soc constraint definition (slightly cleaned)
where the operation
discharge_mw / discharge_eff
is bypassing the linopy definitions and directly dividing the variable labels, and does not even raise an error.For correct operation needs to be realigned to:
=> need implementations for
__div__
and__truediv__
with a scalar onVariable
andLinearExpression
.The text was updated successfully, but these errors were encountered: