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

Avoid repeated JuMP warning with multiple PVs #308

Open
adfarth opened this issue Nov 2, 2023 · 0 comments
Open

Avoid repeated JuMP warning with multiple PVs #308

adfarth opened this issue Nov 2, 2023 · 0 comments

Comments

@adfarth
Copy link
Collaborator

adfarth commented Nov 2, 2023

┌ 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.

^^output thousands of times in the console for multiple PV runs

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