{"action":"closed","issue":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/173","labels_url":"https://api.github.com/repos/convexopt/gpkit/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/convexopt/gpkit/issues/173/comments","events_url":"https://api.github.com/repos/convexopt/gpkit/issues/173/events","html_url":"https://github.com/convexopt/gpkit/issues/173","id":60871826,"number":173,"title":"table() does not properly handle VectorVariables","user":{"login":"whoburg","id":6042395,"avatar_url":"https://avatars.githubusercontent.com/u/6042395?v=3","gravatar_id":"","url":"https://api.github.com/users/whoburg","html_url":"https://github.com/whoburg","followers_url":"https://api.github.com/users/whoburg/followers","following_url":"https://api.github.com/users/whoburg/following{/other_user}","gists_url":"https://api.github.com/users/whoburg/gists{/gist_id}","starred_url":"https://api.github.com/users/whoburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoburg/subscriptions","organizations_url":"https://api.github.com/users/whoburg/orgs","repos_url":"https://api.github.com/users/whoburg/repos","events_url":"https://api.github.com/users/whoburg/events{/privacy}","received_events_url":"https://api.github.com/users/whoburg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/convexopt/gpkit/labels/ready","name":"ready","color":"ffffff"}],"state":"closed","locked":false,"assignee":{"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},"milestone":null,"comments":1,"created_at":"2015-03-12T18:33:12Z","updated_at":"2015-03-24T03:01:12Z","closed_at":"2015-03-24T03:01:12Z","body":"Here's a simple GP involving a `VectorVariable`, `V`:\r\n\r\n```python\r\nfrom gpkit import VectorVariable, GP\r\nN = 5\r\nV = VectorVariable(N, 'V')\r\nprob = GP(sum(V),\r\n          [V.prod() >= 1])\r\nsol = prob.solve()\r\nprint sol.table()\r\n```\r\n\r\nThe output hides the fact that `V` is a `VectorVariable`:\r\n\r\n```python\r\nUsing solver 'cvxopt'\r\nSolving for 5 variables.\r\nSolving took 0.00639 seconds\r\n              | Cost\r\n              : 5       \r\n              | \r\n              | Free variables\r\n            V : 1        [-] \r\n              |\r\n              | Constants\r\n              |\r\n              | Constant sensitivities\r\n              |\r\n```"}}