Page 1 of 1

Matrix is not quasi-triangular

PostPosted: Thu Sep 25, 2014 3:55 am
by dean0504
Hi All. Dynare presents the following mistake information when I run the model
Code: Select all
At ../../../../dynare++/sylv/cc/QuasiTriangular.cpp:128:Matrix is not quasi-triangular

Error using mexErrCheck (line 41)
Error encountered in: gensylv.

Error in dyn_second_order_solver (line 116)
    mexErrCheck('gensylv', err);

Error in stochastic_solvers (line 225)
        dr = dyn_second_order_solver(jacobia_,hessian1,dr,M_,...

Error in resol (line 137)
    [dr,info] = stochastic_solvers(dr,check_flag,M,options,oo);

Error in stoch_simul (line 88)
    [oo_.dr,info,M_,options_,oo_] = resol(0,M_,options_,oo_);

Error in V2 (line 980)

Could anyone know how to solve it? The code is as attched.

Re: Matrix is not quasi-triangular

PostPosted: Thu Sep 25, 2014 6:36 am
by jpfeifer
Run model_diagnostics. The most important issue is
Code: Select all
MODEL_DIAGNOSTICS: The following endogenous variables aren't present at the current period in the model:
Ht     
Hnt   

Re: Matrix is not quasi-triangular

PostPosted: Thu Sep 25, 2014 10:31 am
by dean0504
Hi Jpfeifer! Thanks a lot! After revised the mistake, I met another problem. Dynare present the information as follows
Code: Select all
stoch_simul:: The simulations conducted for generating IRFs to epsilon_yrow were explosive.
stoch_simul:: No IRFs will be displayed. Either reduce the shock size,
stoch_simul:: use pruning, or set the approximation order to 1.

I searched in this forum and used the option "pruning", but I still cannot get the IRFs. Would you please give me some suggestions about this issue? The updated code is attached. Thanks!

Re: Matrix is not quasi-triangular

PostPosted: Fri Sep 26, 2014 8:42 am
by jpfeifer
Your model has a unit root that makes all endogenous variables you want to simulate non-stationary. You need to deal with this first.