Inequality 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.

Inequality constraints

Postby eta » Thu Nov 19, 2015 3:18 pm

Hi, I'm trying to solve a model with two inequality constraints (Schmitt-Grohé and Uribe, 2015): one for hours worked, h<=h_ss, and another one for debt d, which is assumed at t-1 and due at time t (i.e., a predetermined variable) , d(+1)<=d_bar, where d_bar is the debt limit set equal to 1. I write the associated complementary slackness conditions using the logical operators and the max function. However, the following problem occurs:
SOLVE: maxit has been reached
Not enough input arguments.

Error in resid (line 87)
[N,nz]=size(z);

Error in steady (line 90)
resid;

Error in baseline (line 157)
steady;

Error in dynare (line 180)
evalin('base',fname) ;


Is this a problem of bad initial conditions ? Thanks
Last edited by eta on Thu Jan 28, 2016 8:25 am, edited 1 time in total.
eta
 
Posts: 70
Joined: Sat Sep 27, 2014 3:48 pm

Re: Inequality constraints

Postby jpfeifer » Sat Nov 21, 2015 3:00 pm

There might be another issues. With the unstable version, I get:

STEADY-STATE RESULTS:

cT 109.933
h 1
w 92948.7
d -1198.26
lambda -9.99201e-16
mu 0
unem 0
output 1
Error using print_info (line 54)
One of the eigenvalues is close to 0/0 (the absolute value of numerator and denominator is smaller than 1e-06!
If you believe that the model has a unique solution you can try to reduce the value of qz_zero_threshold.

Error in check (line 76)
print_info(info, 0, options);

Error in baseline (line 171)
oo_.dr.eigval = check(M_,options_,oo_);

Error in dynare (line 223)
evalin('base',fname) ;

>> model_diagnostics(M_,options_,oo_)
MODEL_DIAGNOSTICS: The Jacobian of the static model is singular
MODEL_DIAGNOSTICS: there is 1 colinear relationships between the variables and the equations
Colinear variables:
cT
w
d
Colinear equations
2 3 5

MODEL_DIAGNOSTICS: The presence of a singularity problem typically indicates that there is one
MODEL_DIAGNOSTICS: redundant equation entered in the model block, while another non-redundant equation
MODEL_DIAGNOSTICS: is missing. The problem often derives from Walras Law.
>>
------------
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 7 guests