Nonnegativity constraints

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.

Nonnegativity constraints

Postby meralcakici » Wed Nov 25, 2009 1:41 pm

Hi everyone,
I would like to impose nonnegativity constraints for some of the variables in my stochastic small open economy model. Can anyone help me about how to include/capture inequalities in the mod.file?
Thank you in advance for your interest.
Best,

Meral
meralcakici
 
Posts: 2
Joined: Tue Jul 01, 2008 9:18 pm

Re: Nonnegativity constraints

Postby pakocica » Fri Nov 27, 2009 7:38 pm

Dear Meral,

I think that the best choice for you is to use the logarithm lx = log(x) of the variable instead of the variable x itself. The you have guaranteed that the variable x = exp (lx) i positive.

Best,
Pavel
pakocica
 
Posts: 46
Joined: Fri Nov 27, 2009 6:42 pm
Location: Taiwan (come from Prague)


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 10 guests