{"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 -- possible mosek bug","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/3","html_url":"https://github.com/convexopt/gpkit/milestones/0.3%20-%20Model,%20GP%20refactor,%20SP%20basics","labels_url":"https://api.github.com/repos/convexopt/gpkit/milestones/3/labels","id":1213245,"number":3,"title":"0.3 - Model, GP refactor, SP basics","description":"Model refactor\r\n  - composing Models, creating Model objects (no inheritance!)\r\n       - forms spec for NomialData refactor to follow\r\n\r\nGP refactor\r\n  - emphasize readability of code, especially for mathematicians and solver-writers\r\n\r\nSP basic functionality\r\n  - All SPs should work, but may need initial conditions","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":18,"closed_issues":9,"state":"open","created_at":"2015-07-17T17:00:25Z","updated_at":"2015-08-10T19:40:03Z","due_on":"2015-08-13T04:00:00Z","closed_at":null},"comments":31,"created_at":"2015-07-22T20:10:21Z","updated_at":"2015-08-11T03:32:55Z","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/129691204","html_url":"https://github.com/convexopt/gpkit/issues/296#issuecomment-129691204","issue_url":"https://api.github.com/repos/convexopt/gpkit/issues/296","id":129691204,"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},"created_at":"2015-08-11T03:32:55Z","updated_at":"2015-08-11T03:32:55Z","body":"I agree with that as a long term solution, if this is really a mosek bug. I remain mildly skeptical that it's a real mosek bug, especially with issues like #313 and some A matrix transpose confusion still floating around.\r\n\r\nBut I'm willing to be convinced, at which point I'll agree with moving the fix to the mosek solvers."}}