{"action":"created","issue":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/296","labels_url":"https://api.github.com/repos/convexopt/gpkit/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/convexopt/gpkit/issues/296/comments","events_url":"https://api.github.com/repos/convexopt/gpkit/issues/296/events","html_url":"https://github.com/convexopt/gpkit/issues/296","id":96653336,"number":296,"title":"Incorrect cost for simple GP","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":{"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},"milestone":{"url":"https://api.github.com/repos/convexopt/gpkit/milestones/2","html_url":"https://github.com/convexopt/gpkit/milestones/0.2%20-%20Documentation%20&%20stale%20fixes","labels_url":"https://api.github.com/repos/convexopt/gpkit/milestones/2/labels","id":989413,"number":2,"title":"0.2 - Documentation & stale fixes","description":"Close documentation tickets, check docs are accurate, and push what we've done over the last 6 mos.\r\n\r\nNote that Signomials are experimental, expected to work well with initial conditions at 0.3, and without initial conditions at 0.5","creator":{"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},"open_issues":4,"closed_issues":24,"state":"open","created_at":"2015-02-21T15:32:11Z","updated_at":"2015-07-24T17:54:42Z","due_on":"2015-07-24T04:00:00Z","closed_at":null},"comments":17,"created_at":"2015-07-22T20:10:21Z","updated_at":"2015-07-24T20:00:26Z","closed_at":null,"body":"The optimal cost for this GP should be 3, but instead it is 2.889\r\n\r\n```\r\nfrom gpkit import Variable, GP\r\n\r\nx1 = Variable('x1')\r\nx2 = Variable('x2')\r\n\r\ngp = GP(1.+ x1 + x2, [x1 >= 1., x2 >=1.])\r\nsol = gp.solve(solver=\"mosek\")\r\nprint sol.table()\r\n```\r\n\r\n```\r\nIn [1]: %run debug2.py\r\nOptional Python units library (Pint) not installed; unit support disabled.\r\nUsing solver 'mosek'\r\nSolving for 2 variables.\r\nSolving took 0.0148 seconds.\r\n\r\nCost\r\n----\r\n 2.889\r\n\r\nFree variables\r\n--------------\r\nx1 : 1 \r\nx2 : 1 \r\n\r\nSwept variables\r\n---------------\r\n\r\nConstants\r\n---------\r\n\r\nConstant and swept variable sensitivities\r\n-----------------------------------------\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/comments/124691952","html_url":"https://github.com/convexopt/gpkit/issues/296#issuecomment-124691952","issue_url":"https://api.github.com/repos/convexopt/gpkit/issues/296","id":124691952,"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-07-24T20:00:26Z","updated_at":"2015-07-24T20:00:26Z","body":"Do it in expopt.imize, so that the solver interface doesn't have to worry about that junk.\r\n\r\nDoes this happen with `mosek_cli` as well?"}}