Implementing time-indexed constraint

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Implementing time-indexed constraint

Postby mricci » Sat May 14, 2016 3:15 pm

Good evening,

I am writing to ask if the following problem can be implemented in Dynare.

Without wasting your time with details on why I am trying to do this,
Just imagine to solve a planner’s problem where the planner maximize his objective function (other than utility) under the constraint of ensuring a given amount of life-time Welfare to the household (the setting is deterministic/perfect foresight).

This will require the sum of discounted utility, to be equal to a given constant ,V,:

    V= sum^{\infty}_{t=0} \beta^{t} U_{t}

Now, the infinite forward summation above has a recursive representation of the form:

    W_{t}=U_{t}+beta* W_{t+1}

Implementing such a constraint then, would require a condition of the form:

    W_{0}=V

This condition is based on an equation which depends on the value of an endogenous variable, W, assessed at a particular point of time (t=0).

My question then is: Is there a way in Dynare to write/implement such a time indexed constraint?

[*]PS: in dynare notation it would actually be W_{2}=V since numeration starts from 1, and the first element in the vector is dedicated to the initial steady state
mricci
 
Posts: 35
Joined: Sat Aug 16, 2014 3:31 pm

Re: Implementing time-indexed constraint

Postby jpfeifer » Tue May 17, 2016 5:59 pm

Does that constraint only exist in the first period so that
Code: Select all
W_{0}=V

and thereafter W is unrestricted?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Implementing time-indexed constraint

Postby mricci » Tue May 17, 2016 10:17 pm

Dear Professor Pfeifer,
Thank you very much for your reply.

Yes that constraint would involve only the variable W at time zero, e.g W_{0} (in Dynare notation at W_{2})

However,notice that, from the way I have defined, W is a recursive process representing the infinite forward summation of discounted life-time utility.
So actually this constraint involves any period in which the simulation is run.

E.g. it basically constraints the planner to ensure a given level of life-time utility. Given this constraint, the planner can then allocate the per-utility as he wants.


m.
mricci
 
Posts: 35
Joined: Sat Aug 16, 2014 3:31 pm

Re: Implementing time-indexed constraint

Postby jpfeifer » Wed May 18, 2016 10:17 am

If I understand you correctly, you want to have a condition where
Code: Select all
(W-V)*x=0

where x is an exogenous "indicator" variable that is 1 in period 1 and 0 afterwards.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 14 guests