{"action":"created","issue":{"url":"https://api.github.com/repos/mlubin/JuMPChance.jl/issues/3","labels_url":"https://api.github.com/repos/mlubin/JuMPChance.jl/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mlubin/JuMPChance.jl/issues/3/comments","events_url":"https://api.github.com/repos/mlubin/JuMPChance.jl/issues/3/events","html_url":"https://github.com/mlubin/JuMPChance.jl/issues/3","id":90762547,"number":3,"title":"LazyCallBack getValue error","user":{"login":"kaarthiksundar","id":8828474,"avatar_url":"https://avatars.githubusercontent.com/u/8828474?v=3","gravatar_id":"","url":"https://api.github.com/users/kaarthiksundar","html_url":"https://github.com/kaarthiksundar","followers_url":"https://api.github.com/users/kaarthiksundar/followers","following_url":"https://api.github.com/users/kaarthiksundar/following{/other_user}","gists_url":"https://api.github.com/users/kaarthiksundar/gists{/gist_id}","starred_url":"https://api.github.com/users/kaarthiksundar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaarthiksundar/subscriptions","organizations_url":"https://api.github.com/users/kaarthiksundar/orgs","repos_url":"https://api.github.com/users/kaarthiksundar/repos","events_url":"https://api.github.com/users/kaarthiksundar/events{/privacy}","received_events_url":"https://api.github.com/users/kaarthiksundar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T19:20:12Z","updated_at":"2015-07-29T04:56:46Z","closed_at":null,"body":"I am trying to use implement a LazyCallback for a mixed integer program using a chance model and when I use getValue(x), JuMP throws an error saying x is not defined. I checked the original model and x is defined. \r\n\r\nWhat could be the cause of this issue? Is it because JuMP chance already invokes the LazyCallback once and I cannot invoke it again? "},"comment":{"url":"https://api.github.com/repos/mlubin/JuMPChance.jl/issues/comments/125842005","html_url":"https://github.com/mlubin/JuMPChance.jl/issues/3#issuecomment-125842005","issue_url":"https://api.github.com/repos/mlubin/JuMPChance.jl/issues/3","id":125842005,"user":{"login":"mlubin","id":1733683,"avatar_url":"https://avatars.githubusercontent.com/u/1733683?v=3","gravatar_id":"","url":"https://api.github.com/users/mlubin","html_url":"https://github.com/mlubin","followers_url":"https://api.github.com/users/mlubin/followers","following_url":"https://api.github.com/users/mlubin/following{/other_user}","gists_url":"https://api.github.com/users/mlubin/gists{/gist_id}","starred_url":"https://api.github.com/users/mlubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlubin/subscriptions","organizations_url":"https://api.github.com/users/mlubin/orgs","repos_url":"https://api.github.com/users/mlubin/repos","events_url":"https://api.github.com/users/mlubin/events{/privacy}","received_events_url":"https://api.github.com/users/mlubin/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T04:56:46Z","updated_at":"2015-07-29T04:56:46Z","body":"Is this resolved? We follow Julia's scoping rules, so the variable ``x`` needs to be within the scope of the callback function for you to be able to access its value."}}