{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/837","repository_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl","labels_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/837/labels{/name}","comments_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/837/comments","events_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/837/events","html_url":"https://github.com/JuliaOpt/JuMP.jl/issues/837","id":172389434,"number":837,"title":"addition operator warning","user":{"login":"kkmann","id":2482236,"avatar_url":"https://avatars.githubusercontent.com/u/2482236?v=3","gravatar_id":"","url":"https://api.github.com/users/kkmann","html_url":"https://github.com/kkmann","followers_url":"https://api.github.com/users/kkmann/followers","following_url":"https://api.github.com/users/kkmann/following{/other_user}","gists_url":"https://api.github.com/users/kkmann/gists{/gist_id}","starred_url":"https://api.github.com/users/kkmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkmann/subscriptions","organizations_url":"https://api.github.com/users/kkmann/orgs","repos_url":"https://api.github.com/users/kkmann/repos","events_url":"https://api.github.com/users/kkmann/events{/privacy}","received_events_url":"https://api.github.com/users/kkmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-22T07:55:27Z","updated_at":"2016-08-23T03:52:09Z","closed_at":null,"body":"Hi,\r\n\r\nI get the \"Warning: 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 += , use append!(x,y) to modify x in place. Uf y is a single variable, you may also use push!(x, coef, y) in place of x += coef*y\"-warning when defining an objective via the sum macro for a large number of variables (~ 2 million binary ones). I do not quite understand the error message, nor what I need to do to speed up model creation. Do I just have to live with the slow model creation? "},"comment":{"url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/comments/241619608","html_url":"https://github.com/JuliaOpt/JuMP.jl/issues/837#issuecomment-241619608","issue_url":"https://api.github.com/repos/JuliaOpt/JuMP.jl/issues/837","id":241619608,"user":{"login":"mlubin","id":1733683,"avatar_url":"https://avatars.githubusercontent.com/u/1733683?v=3","gravatar_id":"","url":"https://api.github.com/users/mlubin","html_url":"https://github.com/mlubin","followers_url":"https://api.github.com/users/mlubin/followers","following_url":"https://api.github.com/users/mlubin/following{/other_user}","gists_url":"https://api.github.com/users/mlubin/gists{/gist_id}","starred_url":"https://api.github.com/users/mlubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlubin/subscriptions","organizations_url":"https://api.github.com/users/mlubin/orgs","repos_url":"https://api.github.com/users/mlubin/repos","events_url":"https://api.github.com/users/mlubin/events{/privacy}","received_events_url":"https://api.github.com/users/mlubin/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T03:52:09Z","updated_at":"2016-08-23T03:52:09Z","body":"Yes, the same counter is used across the model. If you can't create a short example, any self-contained example that we can run locally will do."}}
{"actor":{"display_login":"mlubin"}}