{"action":"created","issue":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/434","labels_url":"https://api.github.com/repos/convexopt/gpkit/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/convexopt/gpkit/issues/434/comments","events_url":"https://api.github.com/repos/convexopt/gpkit/issues/434/events","html_url":"https://github.com/convexopt/gpkit/pull/434","id":113985175,"number":434,"title":"initial commit of plot_convergence","user":{"login":"pgkirsch","id":8702579,"avatar_url":"https://avatars.githubusercontent.com/u/8702579?v=3","gravatar_id":"","url":"https://api.github.com/users/pgkirsch","html_url":"https://github.com/pgkirsch","followers_url":"https://api.github.com/users/pgkirsch/followers","following_url":"https://api.github.com/users/pgkirsch/following{/other_user}","gists_url":"https://api.github.com/users/pgkirsch/gists{/gist_id}","starred_url":"https://api.github.com/users/pgkirsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgkirsch/subscriptions","organizations_url":"https://api.github.com/users/pgkirsch/orgs","repos_url":"https://api.github.com/users/pgkirsch/repos","events_url":"https://api.github.com/users/pgkirsch/events{/privacy}","received_events_url":"https://api.github.com/users/pgkirsch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-29T05:50:28Z","updated_at":"2015-12-06T01:49:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/convexopt/gpkit/pulls/434","html_url":"https://github.com/convexopt/gpkit/pull/434","diff_url":"https://github.com/convexopt/gpkit/pull/434.diff","patch_url":"https://github.com/convexopt/gpkit/pull/434.patch"},"body":"To try and help debug/understand my SP solving woes, I wrote a quick script (`plot_convergence`) to visualize the convergence of the decision variables. This is another tool where I don't know if it belongs in gpkit or not, but I don't know someone else might find this useful too.\r\n\r\nExample usage:\r\n```python\r\nIn [1]: %run tail.py\r\n\r\nIn [2]: import plot_convergence as pc\r\n\r\nIn [3]: pc.plot_convergence(m)\r\n```\r\n<img width=\"954\" alt=\"screen shot 2015-10-29 at 01 46 29 am\" src=\"https://cloud.githubusercontent.com/assets/8702579/10811138/1b275f92-7ddf-11e5-8a05-459e94c11cca.png\">\r\n\r\nIn case anyone is wondering, this was motivated by wanting to know what is going on when the solver exhausts the 52 solutions without converging. This example shows how the solution is oscillating.\r\n\r\n<img width=\"1088\" alt=\"screen shot 2015-10-29 at 01 47 44 am\" src=\"https://cloud.githubusercontent.com/assets/8702579/10811156/5596327a-7ddf-11e5-98c6-c1cce5be7516.png\">\r\n\r\nThe number in parentheses in the maximum value of the DV.\r\nAlso matplotlib legends are the absolute worst."},"comment":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/comments/162263024","html_url":"https://github.com/convexopt/gpkit/pull/434#issuecomment-162263024","issue_url":"https://api.github.com/repos/convexopt/gpkit/issues/434","id":162263024,"user":{"login":"bqpd","id":1482776,"avatar_url":"https://avatars.githubusercontent.com/u/1482776?v=3","gravatar_id":"","url":"https://api.github.com/users/bqpd","html_url":"https://github.com/bqpd","followers_url":"https://api.github.com/users/bqpd/followers","following_url":"https://api.github.com/users/bqpd/following{/other_user}","gists_url":"https://api.github.com/users/bqpd/gists{/gist_id}","starred_url":"https://api.github.com/users/bqpd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bqpd/subscriptions","organizations_url":"https://api.github.com/users/bqpd/orgs","repos_url":"https://api.github.com/users/bqpd/repos","events_url":"https://api.github.com/users/bqpd/events{/privacy}","received_events_url":"https://api.github.com/users/bqpd/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T01:49:00Z","updated_at":"2015-12-06T01:49:00Z","body":"Yeah! I don't think it should be normalized by max value, though, because our initial guess is all ones...either a logy plot or normalize by max of solves after the first that weren't feasibility solves?"}}