{"action":"created","issue":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/177","labels_url":"https://api.github.com/repos/convexopt/gpkit/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/convexopt/gpkit/issues/177/comments","events_url":"https://api.github.com/repos/convexopt/gpkit/issues/177/events","html_url":"https://github.com/convexopt/gpkit/issues/177","id":64055447,"number":177,"title":"Minus signs in objective functions","user":{"login":"cjk12","id":8631725,"avatar_url":"https://avatars.githubusercontent.com/u/8631725?v=3","gravatar_id":"","url":"https://api.github.com/users/cjk12","html_url":"https://github.com/cjk12","followers_url":"https://api.github.com/users/cjk12/followers","following_url":"https://api.github.com/users/cjk12/following{/other_user}","gists_url":"https://api.github.com/users/cjk12/gists{/gist_id}","starred_url":"https://api.github.com/users/cjk12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjk12/subscriptions","organizations_url":"https://api.github.com/users/cjk12/orgs","repos_url":"https://api.github.com/users/cjk12/repos","events_url":"https://api.github.com/users/cjk12/events{/privacy}","received_events_url":"https://api.github.com/users/cjk12/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/convexopt/gpkit/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/convexopt/gpkit/labels/in%20progress","name":"in progress","color":"bfe5bf"}],"state":"open","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":26,"created_at":"2015-03-24T17:36:43Z","updated_at":"2015-03-24T19:38:28Z","closed_at":null,"body":"I want this to work:\r\n\r\n```python\r\nimport gpkit\r\nimport gpkit.interactive\r\ngpkit.interactive.init_printing()\r\n%matplotlib inline\r\nimport matplotlib.pyplot as plt\r\n\r\nL = gpkit.Variable(\"L\", \"m\", \"Length\")\r\nW = gpkit.Variable(\"W\", \"m\", \"Width\")\r\nObj = gpkit.Variable(\"Obj\", \"1/m^2\", \"Objective\")\r\n\r\na = gpkit.Variable(\"a\", np.linspace(0,1,10), \"-\", \"Pareto Sweep Variable\")\r\n\r\neqns = [L*W==10*gpkit.units.m**2]\r\n\r\nObj = a*(2*L+2*W) + (a-1)*(12 * W**-1 * L**-3)\r\n\r\ngp = gpkit.GP(Obj, eqns)\r\nsol = gp.solve()\r\n\r\n```\r\n\r\nbut right now it doesn't know how to handle the `a-1`.  I can get around it, but it would be nice to have the functionality."},"comment":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/comments/85663417","html_url":"https://github.com/convexopt/gpkit/issues/177#issuecomment-85663417","issue_url":"https://api.github.com/repos/convexopt/gpkit/issues/177","id":85663417,"user":{"login":"cjk12","id":8631725,"avatar_url":"https://avatars.githubusercontent.com/u/8631725?v=3","gravatar_id":"","url":"https://api.github.com/users/cjk12","html_url":"https://github.com/cjk12","followers_url":"https://api.github.com/users/cjk12/followers","following_url":"https://api.github.com/users/cjk12/following{/other_user}","gists_url":"https://api.github.com/users/cjk12/gists{/gist_id}","starred_url":"https://api.github.com/users/cjk12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjk12/subscriptions","organizations_url":"https://api.github.com/users/cjk12/orgs","repos_url":"https://api.github.com/users/cjk12/repos","events_url":"https://api.github.com/users/cjk12/events{/privacy}","received_events_url":"https://api.github.com/users/cjk12/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T19:38:28Z","updated_at":"2015-03-24T19:38:28Z","body":"Does that mean if I pull my code will run?"}}