{"action":"created","issue":{"url":"https://api.github.com/repos/switch-model/switch/issues/48","repository_url":"https://api.github.com/repos/switch-model/switch","labels_url":"https://api.github.com/repos/switch-model/switch/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/switch-model/switch/issues/48/comments","events_url":"https://api.github.com/repos/switch-model/switch/issues/48/events","html_url":"https://github.com/switch-model/switch/issues/48","id":176282598,"number":48,"title":"Parallelization","user":{"login":"bmaluenda","id":17757641,"avatar_url":"https://avatars.githubusercontent.com/u/17757641?v=3","gravatar_id":"","url":"https://api.github.com/users/bmaluenda","html_url":"https://github.com/bmaluenda","followers_url":"https://api.github.com/users/bmaluenda/followers","following_url":"https://api.github.com/users/bmaluenda/following{/other_user}","gists_url":"https://api.github.com/users/bmaluenda/gists{/gist_id}","starred_url":"https://api.github.com/users/bmaluenda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmaluenda/subscriptions","organizations_url":"https://api.github.com/users/bmaluenda/orgs","repos_url":"https://api.github.com/users/bmaluenda/repos","events_url":"https://api.github.com/users/bmaluenda/events{/privacy}","received_events_url":"https://api.github.com/users/bmaluenda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-12T02:28:14Z","updated_at":"2016-10-12T14:04:52Z","closed_at":"2016-10-12T14:04:52Z","body":"I was wondering if there is any way that Switch simulations could be parallelized to speed up runs. It has more to do with Pyomo rather than Switch itself, but I thought this would be the ideal place to ask first.\r\n\r\nI've found that there are two main processes that take up most of the time of my simulations: the model instantiation (`load_inputs` function) and the printing of the LP file that is passed to Gurobi, the solver. Actual optimization time is around the same order of magnitude of these processes, but it's already being parallelized by Gurobi, so no speed ups seem possible in that area. \r\n\r\nBoth model instantiation and pre solving use up only one core of the server and take significant time to complete. Do you know if it's possible to speed them up? As for the pre solving process, I tried using a direct Python interface with Gurobi (loading the model directly from Pyomo components instead of writing and parsing an LP file), but it was even a bit slower."},"comment":{"url":"https://api.github.com/repos/switch-model/switch/issues/comments/253222683","html_url":"https://github.com/switch-model/switch/issues/48#issuecomment-253222683","issue_url":"https://api.github.com/repos/switch-model/switch/issues/48","id":253222683,"user":{"login":"bmaluenda","id":17757641,"avatar_url":"https://avatars.githubusercontent.com/u/17757641?v=3","gravatar_id":"","url":"https://api.github.com/users/bmaluenda","html_url":"https://github.com/bmaluenda","followers_url":"https://api.github.com/users/bmaluenda/followers","following_url":"https://api.github.com/users/bmaluenda/following{/other_user}","gists_url":"https://api.github.com/users/bmaluenda/gists{/gist_id}","starred_url":"https://api.github.com/users/bmaluenda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmaluenda/subscriptions","organizations_url":"https://api.github.com/users/bmaluenda/orgs","repos_url":"https://api.github.com/users/bmaluenda/repos","events_url":"https://api.github.com/users/bmaluenda/events{/privacy}","received_events_url":"https://api.github.com/users/bmaluenda/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T14:04:52Z","updated_at":"2016-10-12T14:04:52Z","body":"I found out that parallelization is not possible when building the model instance. I read it [in this Pyomo Google Group forum post](https://groups.google.com/d/topic/pyomo-forum/r6tNZ-fg68w/discussion).\r\n\r\nClosing this Issue."}}
{"actor":{"display_login":"bmaluenda"}}