{"action":"created","issue":{"url":"https://api.github.com/repos/convexengineering/gpkit/issues/1201","repository_url":"https://api.github.com/repos/convexengineering/gpkit","labels_url":"https://api.github.com/repos/convexengineering/gpkit/issues/1201/labels{/name}","comments_url":"https://api.github.com/repos/convexengineering/gpkit/issues/1201/comments","events_url":"https://api.github.com/repos/convexengineering/gpkit/issues/1201/events","html_url":"https://github.com/convexengineering/gpkit/issues/1201","id":271234595,"number":1201,"title":"ConstantsRelaxed only works after failed solve attempt","user":{"login":"mjburton11","id":14276241,"avatar_url":"https://avatars1.githubusercontent.com/u/14276241?v=4","gravatar_id":"","url":"https://api.github.com/users/mjburton11","html_url":"https://github.com/mjburton11","followers_url":"https://api.github.com/users/mjburton11/followers","following_url":"https://api.github.com/users/mjburton11/following{/other_user}","gists_url":"https://api.github.com/users/mjburton11/gists{/gist_id}","starred_url":"https://api.github.com/users/mjburton11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjburton11/subscriptions","organizations_url":"https://api.github.com/users/mjburton11/orgs","repos_url":"https://api.github.com/users/mjburton11/repos","events_url":"https://api.github.com/users/mjburton11/events{/privacy}","received_events_url":"https://api.github.com/users/mjburton11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-04T23:25:18Z","updated_at":"2017-11-06T03:41:19Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"On convexengineering/ondemand@bf0aca9ebe222b55f9073d6e23accaef8b0996f8 I tried creating a model and using ConstantsRelaxed which originally failed, but worked after trying to solve. \r\n\r\n```python\r\nIn [1]: from stol import Mission\r\n\r\nIn [2]: M = Mission(sp=True)\r\n\r\nIn [3]: M.cost = M[\"S_{runway}\"]*M[M.aircraft.topvar(\"W\")]/M[\"R\"]\r\n\r\nIn [5]: from gpkit.constraints.relax import ConstantsRelaxed\r\n\r\nIn [6]: cr = ConstantsRelaxed(M)\r\n\r\n/Users/mjburton11/MIT/GPKIT/gpkit/gpkit/nomials/substitution.pyc in append_sub(sub, keys, constants, sweep, linkedsweep)\r\n     62 \r\n     63         if hasattr(value, \"__call__\") and not hasattr(value, \"key\"):\r\n---> 64             linkedsweep[key] = value\r\n     65         elif sweepsub:\r\n     66             sweep[key] = value\r\n\r\nTypeError: 'NoneType' object does not support item assignment\r\n\r\nIn [7]: M.localsolve(\"mosek\")\r\nBeginning signomial solve.\r\n\r\nRuntimeWarning: final status of solver 'mosek' was 'UNKNOWN', not 'optimal'.\r\n\r\nThe solver's result is stored in model.program.solver_out. A result dict can be generated via program._compile_result(program.solver_out).\r\n\r\nIn [8]: cr = ConstantsRelaxed(M)\r\n\r\nIn [9]: \r\n```"},"comment":{"url":"https://api.github.com/repos/convexengineering/gpkit/issues/comments/342038775","html_url":"https://github.com/convexengineering/gpkit/issues/1201#issuecomment-342038775","issue_url":"https://api.github.com/repos/convexengineering/gpkit/issues/1201","id":342038775,"user":{"login":"bqpd","id":1482776,"avatar_url":"https://avatars2.githubusercontent.com/u/1482776?v=4","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":"2017-11-06T03:41:19Z","updated_at":"2017-11-06T03:41:19Z","author_association":"OWNER","body":"```\r\nSolves with these variables bounded:\r\n   value near lower bound: [B_Mission/Landing]\r\n   value near upper bound: [W_{wing}_Mission/Aircraft, C_{L_g}_Mission/Landing, C_{L_g}_Mission/TakeOff]\r\n```"}}
{"actor":{"display_login":"bqpd"}}