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

Figure out what's causing JuMP addition operator warning #274

Open
adfarth opened this issue Sep 28, 2023 · 0 comments
Open

Figure out what's causing JuMP addition operator warning #274

adfarth opened this issue Sep 28, 2023 · 0 comments

Comments

@adfarth
Copy link
Collaborator

adfarth commented Sep 28, 2023

Some runs cause this warning to repeat hundreds(?) of times:
┌ JuMP | Warn: The addition operator has been used on JuMP expressions a large number of times. This warning is safe to ignore but may indicate that model generation is slower than necessary. For performance reasons, you should not add expressions in a loop. Instead of x += y, use add_to_expression!(x,y) to modify x in place. If y is a single variable, you may also use add_to_expression!(x, coef, y) for x += coef*y.

@adfarth adfarth changed the title Figure out what's causing addition operator warning Figure out what's causing JuMP addition operator warning Sep 28, 2023
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