{"action":"created","issue":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/323","labels_url":"https://api.github.com/repos/convexopt/gpkit/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/convexopt/gpkit/issues/323/comments","events_url":"https://api.github.com/repos/convexopt/gpkit/issues/323/events","html_url":"https://github.com/convexopt/gpkit/pull/323","id":100442330,"number":323,"title":"first feasibility reports","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-12T00:43:16Z","updated_at":"2015-08-12T03:15:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/convexopt/gpkit/pulls/323","html_url":"https://github.com/convexopt/gpkit/pull/323","diff_url":"https://github.com/convexopt/gpkit/pull/323.diff","patch_url":"https://github.com/convexopt/gpkit/pull/323.patch"},"body":"re: #31\r\n\r\nExample usage:\r\n```python\r\nIn [3]: %paste\r\nfrom gpkit import Variable, Model\r\nx = Variable(\"x\")\r\nx_min = Variable(\"x_min\", 2)\r\nx_max = Variable(\"x_max\", 1)\r\nm = Model(x, [x <= x_max, x >= x_min])\r\n#m.solve()\r\nm.feasibility_report()\r\n\r\n## -- End pasted text --\r\nInfeasibility\r\n-------------\r\n      overall : 1.41\r\n   constraint : [2.0, 1.0]\r\n     constant : {x_min: 1.0}\r\nOut[3]: \r\n{'constants': {x_min: 1.0},\r\n 'constraints': [2.0, 1.0],\r\n 'overall': 1.414213562373095}\r\n```\r\n\r\nThe `overall` infeasibility is the number each constraint's less-than side would have to be divided by to make the program feasible. The `constraints` infeasibilities are similar, but specific to each constraint. The `constant` infeasibilities are a set of substitutions that would make the problem feasible, so they're really more a set of \"feasibilities\"."},"comment":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/comments/130145104","html_url":"https://github.com/convexopt/gpkit/pull/323#issuecomment-130145104","issue_url":"https://api.github.com/repos/convexopt/gpkit/issues/323","id":130145104,"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-08-12T03:15:45Z","updated_at":"2015-08-12T03:15:45Z","body":"Added a gigantor docstring; @convexopt/developers, check it out here: a95d344618253b2a4c5e774a831827f25fc2b560#commitcomment-12655769"}}