-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Remove the warning in operator_warn #3910
Comments
A Benders' decomposition like algorithm that is used to solve a multistage convex DRO Unit Commitment problem (potentially to global optimality, and in this case, it can) If you are interested, I can share you the doc of algorithm. |
I didn't mean it as a comment on your code. I more meant that the style is hard to follow on discourse. I can't easily tell what the variables and data are, or what each function is doing, whether you wrote it, or whether, like
I assume that you've seen https://github.com/odow/SDDP.jl 😄 I'd love to know how you can claim global optimality... (SDDP.jl can find local policies for DRO unit commitment). If it's something other than a MIP-based Lipschitz cut thing, feel free to send me an email with the doc 😄 |
Not talking about this. I initiated a chat via DMS on discourse, you can leave your email address there. |
I agree this is a weird one-off case that's probably outlived its usefulness. We could think about a more general performance counter system for JuMP that would help debugging or identifying performance issues. |
I've opened #3911 to remove the warning, and I've made a note in #3664 (comment) to add a more generic profiler. |
I think we should consider removing this warning:
JuMP.jl/src/operators.jl
Lines 279 to 294 in d75a0f8
This warning is quite confusing because it doesn't actually detect what particular code has the issue, and its suggestion may be totally irrelevant if the user called a method that internally uses
+
via a fallback.This warning has come up 7 times since 2019 (two related in the last week):
https://discourse.julialang.org/search?q=%22The%20addition%20operator%20has%20been%20used%20on%22%20order%3Alatest
Of those, really only 1 case was actually relevant, and even then, the user didn't know how to fix it.
https://discourse.julialang.org/t/add-an-optimize-assert-optimal-functionality-in-jump-would-be-handier/124458
To be honest, I don't know what is the problem because the code is quite convoluted with a lot of indirection.
https://discourse.julialang.org/t/jump-speeding-up-constraint-violation-inspection/111303
The offending code was:
but the fix was first to take the value of
τ
and then compute the expression, not form an expression and then take the value. The warning was not helpful.https://discourse.julialang.org/t/help-with-performance-in-jump/57874
Offending code was (where
I
is a matrix of variables):This wasn't hitting a fast
sum
, but they were also recomputing the sumK
times... The warning method was helpful for them to say "something is wrong" but it didn't provide any actionable help.https://discourse.julialang.org/t/jump-warning-messages/35143
Offending code is actually pretty spot on because the code is:
and the fix is
But the user complained only about the warning. Not that it was slow.
https://discourse.julialang.org/t/how-to-solve-large-sparse-lps-in-gurobi/26402/3
From 2019, and has
Q' * X * Q
. I think we do better now.https://discourse.julialang.org/t/jump-slow-model-generation/1623
From 2017 when we didn't support
dot
. Fixed.The text was updated successfully, but these errors were encountered: