Khun-Tucker condition in Dynare

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.

Khun-Tucker condition in Dynare

Postby nasroengineer » Fri Oct 23, 2015 2:31 am

Hello every body ,

First, I am trying to simulate a dynamic model using dynare. It is a simple model. I can simulate it with a type of error message: "Warning: Matrix is close to singular or badly scaled Results May be Inaccurate". Please, can you help me to resolve this error. :?:
Second, I use dynare to resolve a system of first order equation. One of this endogenous variables of my model has a value of zero in steady state, so one of model equations holds with Khun-Tucker condition in steady state (Not interior solution ). Is it possible to use Khun-Tucker formulation in Dynare-matlab ? :!:

I hope that you answer me quickly. Thank you for your help.
nasroengineer
 
Posts: 4
Joined: Fri Oct 23, 2015 2:09 am
Location: Québec, Canada

Re: Khun-Tucker condition in Dynare

Postby jpfeifer » Fri Oct 23, 2015 5:58 am

Without further information or seeing the mod-file, this is impossible to answer.
Regarding the Kuhn-Tucker problem. If you model is stochastic, Dynare cannot easily handle occasionally binding constraints. If your constraint is binding in steady state and you use perturbation solutions, the Taylor approximation to the problem will imply that the constraint is always binding. Depending on what you want to do, Iacoviello/Guerrieri's Occbin might be a solution.
------------
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: Khun-Tucker condition in Dynare

Postby nasroengineer » Fri Oct 23, 2015 6:40 pm

Thank you for your response. I send you the matlab version of model and the file of steady state expressions. As i said, the value of one of variables at steady state is zero. This is the case of inventory in my model (Qss=0).and to help dynare to reproduce the same steady state values, i put a khun-Tucker equation for the dynamic value of stock. I wait for your suggestion. Thank you :)
Attachments
model_general_steadystate.m
This is the file of variables at steady state
(2.56 KiB) Downloaded 173 times
model_general.mod
This is the dynamic model
(613 Bytes) Downloaded 193 times
nasroengineer
 
Posts: 4
Joined: Fri Oct 23, 2015 2:09 am
Location: Québec, Canada

Re: Khun-Tucker condition in Dynare

Postby jpfeifer » Sat Oct 24, 2015 7:06 am

It seems both problems are related. I still don't get the intuition of what you are trying to achieve. But as I said: the complementary slackness condition will be linearly (or second order ) approximated by Dynare. Thus, the kink that you need will be ignored.
In your steady state file, you set the multiplier close to 0. This creates the close to singularity warning. When you go all the way to Q being 0, you will be having a few equations where all variables drop out. This is a problem for the solution technique.
Summarizing, I am not sure the Dynare is capable of dealing with the type of stochastic problem with an occasionally binding constraint.
------------
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: Khun-Tucker condition in Dynare

Postby nasroengineer » Sat Oct 24, 2015 10:41 am

Thank you for your answer. If i want to explain more my model, it is that in steady state, i don't have stock managment, for that Q =0 at steady state. I don't have other choice. if it is a technic problem, i think i have to keep my solution. But can u please explain me the "Iacoviello/Guerrieri's Occbin" and how that can be a solution to my problem? Thank you very much.
nasroengineer
 
Posts: 4
Joined: Fri Oct 23, 2015 2:09 am
Location: Québec, Canada

Re: Khun-Tucker condition in Dynare

Postby jpfeifer » Mon Oct 26, 2015 8:21 am

------------
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: Khun-Tucker condition in Dynare

Postby nasroengineer » Tue Oct 27, 2015 3:32 am

Ok i see, thank you for the reference.
nasroengineer
 
Posts: 4
Joined: Fri Oct 23, 2015 2:09 am
Location: Québec, Canada


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 1 guest