{"action":"created","issue":{"url":"https://api.github.com/repos/irudik/dynamic-stochastic-dice/issues/1","repository_url":"https://api.github.com/repos/irudik/dynamic-stochastic-dice","labels_url":"https://api.github.com/repos/irudik/dynamic-stochastic-dice/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/irudik/dynamic-stochastic-dice/issues/1/comments","events_url":"https://api.github.com/repos/irudik/dynamic-stochastic-dice/issues/1/events","html_url":"https://github.com/irudik/dynamic-stochastic-dice/pull/1","id":213625550,"number":1,"title":"Danny1127 patch 1","user":{"login":"Danny1127","id":7308096,"avatar_url":"https://avatars1.githubusercontent.com/u/7308096?v=3","gravatar_id":"","url":"https://api.github.com/users/Danny1127","html_url":"https://github.com/Danny1127","followers_url":"https://api.github.com/users/Danny1127/followers","following_url":"https://api.github.com/users/Danny1127/following{/other_user}","gists_url":"https://api.github.com/users/Danny1127/gists{/gist_id}","starred_url":"https://api.github.com/users/Danny1127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danny1127/subscriptions","organizations_url":"https://api.github.com/users/Danny1127/orgs","repos_url":"https://api.github.com/users/Danny1127/repos","events_url":"https://api.github.com/users/Danny1127/events{/privacy}","received_events_url":"https://api.github.com/users/Danny1127/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-12T19:02:08Z","updated_at":"2017-03-12T19:34:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/irudik/dynamic-stochastic-dice/pulls/1","html_url":"https://github.com/irudik/dynamic-stochastic-dice/pull/1","diff_url":"https://github.com/irudik/dynamic-stochastic-dice/pull/1.diff","patch_url":"https://github.com/irudik/dynamic-stochastic-dice/pull/1.patch"},"body":"I'm not sure about whether the growth rate should start from 1 or 0.\r\n\r\nCan I get the script that creates the space_terminal? I'm adding a 9th state and need to create a new space_terminal. I'm using random guess from 1000 years later and fix the result at 550 years later, but taking iteration back to around 60 years, I get some error in fmincon:\r\n\r\n> Error using barrier\r\n> Objective function is undefined at initial point.\r\n> Fmincon cannot continue. \r\n> \r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/irudik/dynamic-stochastic-dice/issues/comments/285969318","html_url":"https://github.com/irudik/dynamic-stochastic-dice/pull/1#issuecomment-285969318","issue_url":"https://api.github.com/repos/irudik/dynamic-stochastic-dice/issues/1","id":285969318,"user":{"login":"irudik","id":8059999,"avatar_url":"https://avatars3.githubusercontent.com/u/8059999?v=3","gravatar_id":"","url":"https://api.github.com/users/irudik","html_url":"https://github.com/irudik","followers_url":"https://api.github.com/users/irudik/followers","following_url":"https://api.github.com/users/irudik/following{/other_user}","gists_url":"https://api.github.com/users/irudik/gists{/gist_id}","starred_url":"https://api.github.com/users/irudik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irudik/subscriptions","organizations_url":"https://api.github.com/users/irudik/orgs","repos_url":"https://api.github.com/users/irudik/repos","events_url":"https://api.github.com/users/irudik/events{/privacy}","received_events_url":"https://api.github.com/users/irudik/received_events","type":"User","site_admin":false},"created_at":"2017-03-12T19:34:45Z","updated_at":"2017-03-12T19:34:45Z","body":"I don't have a script to make the terminal value. I doubt a random guess\nwill work out well as funky stuff in the random guess will propagate and\nblow up quickly. Generally here's what I'd suggest to make a terminal value\nfunction:\n\nUse an existing terminal value function and set a super long horizon so\nit's discounted away for the actual terminal horizon you want to compute.\nSo you can use one of the existing terminal value functions here, it won't\nmatter if you set the horizon long enough such as 1000+ years. If you're\nadding in a ninth state you can temporarily hard code smol_eval so that in\nthe terminal period it ignores the 9th state (e.g. something like pts =\npts(1:8)) when computing the terminal continuation value. You can then hard\ncode function_iterate so it keeps pulling exogenous trajectory values from\nthe same year, which sounds like what you're doing.\n\nAnd the exogenous trajectories should all be correct, I've validated them a\nfew times against the numbers in the DICE-2007 GAMS/excel output.\n\n\n\nOn Sun, Mar 12, 2017 at 2:02 PM, Danny1127 <notifications@github.com> wrote:\n\n> I'm not sure about whether the growth rate should start from 1 or 0.\n>\n> Can I get the script that creates the space_terminal? I'm adding a 9th\n> state and need to create a new space_terminal. I'm using random guess from\n> 1000 years later and fix the result at 550 years later, but taking\n> iteration back to around 60 years, I get some error in fmincon:\n>\n> Error using barrier\n> Objective function is undefined at initial point.\n> Fmincon cannot continue.\n>\n> Thank you!\n> ------------------------------\n> You can view, comment on, or merge this pull request online at:\n>\n>   https://github.com/irudik/dynamic-stochastic-dice/pull/1\n> Commit Summary\n>\n>    - Update check_domain.m\n>    - Update transitions_exogenous.m\n>    - Update transitions_exogenous.m\n>\n> File Changes\n>\n>    - *M* check_domain.m\n>    <https://github.com/irudik/dynamic-stochastic-dice/pull/1/files#diff-0>\n>    (6)\n>    - *M* transitions_exogenous.m\n>    <https://github.com/irudik/dynamic-stochastic-dice/pull/1/files#diff-1>\n>    (3)\n>\n> Patch Links:\n>\n>    - https://github.com/irudik/dynamic-stochastic-dice/pull/1.patch\n>    - https://github.com/irudik/dynamic-stochastic-dice/pull/1.diff\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/irudik/dynamic-stochastic-dice/pull/1>, or mute the\n> thread\n> <https://github.com/notifications/unsubscribe-auth/AHr8Xxzj2_AX2Bg74oWXPMPHb0_GDZXAks5rlEEwgaJpZM4Maokv>\n> .\n>\n\n\n\n-- \n\nIvan Rudik\n\nAssistant Professor\n\nDepartment of Economics\n\nIowa State University\n479 Heady Hall\n\nAmes, Iowa 50011\n\nhttp://ivanrudik.com\n"}}
{"actor":{"display_login":"irudik"}}