{"action":"opened","issue":{"url":"https://api.github.com/repos/Pyomo/pyomo/issues/5","repository_url":"https://api.github.com/repos/Pyomo/pyomo","labels_url":"https://api.github.com/repos/Pyomo/pyomo/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Pyomo/pyomo/issues/5/comments","events_url":"https://api.github.com/repos/Pyomo/pyomo/issues/5/events","html_url":"https://github.com/Pyomo/pyomo/issues/5","id":160570261,"number":5,"title":"IndexedVar domain display not updated","user":{"login":"qtothec","id":5910700,"avatar_url":"https://avatars.githubusercontent.com/u/5910700?v=3","gravatar_id":"","url":"https://api.github.com/users/qtothec","html_url":"https://github.com/qtothec","followers_url":"https://api.github.com/users/qtothec/followers","following_url":"https://api.github.com/users/qtothec/following{/other_user}","gists_url":"https://api.github.com/users/qtothec/gists{/gist_id}","starred_url":"https://api.github.com/users/qtothec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qtothec/subscriptions","organizations_url":"https://api.github.com/users/qtothec/orgs","repos_url":"https://api.github.com/users/qtothec/repos","events_url":"https://api.github.com/users/qtothec/events{/privacy}","received_events_url":"https://api.github.com/users/qtothec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-16T03:30:01Z","updated_at":"2016-06-16T03:30:01Z","closed_at":null,"body":"When the domain of a Var is not preset and its elements are modified, the default domain of Reals is displayed even when all elements are changed consistently to a different domain. Small example below:\r\n\r\n```\r\n\"\"\"\r\nSmall example showing outdated Var domain display\r\n\"\"\"\r\n\r\nfrom pyomo.environ import ConcreteModel, Var, RangeSet, Binary\r\n\r\nm = ConcreteModel()\r\nm.s = RangeSet(2)\r\nm.x = Var(m.s)\r\nm.x[1].domain = Binary\r\nm.x[2].domain = Binary\r\n\r\nm.x.display()\r\n\r\n\"\"\"Result is\r\nx : Size=2, Index=s, Domain=Reals\r\n    Key : Lower : Value : Upper : Fixed : Stale\r\n      1 :     0 :  None :     1 : False :  True\r\n      2 :     0 :  None :     1 : False :  True\r\ndespite both individual vars having a domain of Binary\r\n\"\"\"\r\n```"}}
{"actor":{"display_login":"qtothec"}}