# The generalized Schur (QZ)

**URL:** <https://forum.dynare.org/t/the-generalized-schur-qz/3991>\
**Category:** Dynare contributions and examples\
**Created:** [27 June 2014 08:58 UTC](https://forum.dynare.org/t/the-generalized-schur-qz/3991 "2014-06-27T08:58:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jocash](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/e47c2d/32.png) [@jocash](https://forum.dynare.org/u/jocash)\
**Post date:** [27 June 2014 08:58 UTC](https://forum.dynare.org/t/the-generalized-schur-qz/3991/1 "2014-06-27T08:58:04Z")

</div>

Hello,

When i’m trying to run my Dynare code i get the following error:

Error using print\_info at 36  
The generalized Schur (QZ) decomposition failed. For more information, see the documentation for Lapack function  
dgges: info=20, n=20

Error in check at 76  
print\_info(info, options.noprint);

Error in linear\_u at 312  
oo\_.dr.eigval = check(M\_,options\_,oo\_);

Error in ==\> dynare at 235  
evalin(‘base’,fname) ;

What does it mean ? is it a colinearity problem or other else ? Can you help me please?  
[model.mod](https://forum.dynare.org/uploads/default/original/2X/e/e1f7fe778f4b8855aecf5a6cec924c5e725e591a.mod) (7.59 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [27 June 2014 09:38 UTC](https://forum.dynare.org/t/the-generalized-schur-qz/3991/2 "2014-06-27T09:38:18Z")

</div>

Try to execute the Matlab code before the model block (you will need to replace the // comments with % comments). When doing so, you will see that when computing

`I_ss = delta*K_ss; //(6)
`  
that K\_ss has not yet been defined.

---

<div class="post-metadata">

**Author:** ![jocash](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/e47c2d/32.png) [@jocash](https://forum.dynare.org/u/jocash)\
**Post date:** [27 June 2014 12:08 UTC](https://forum.dynare.org/t/the-generalized-schur-qz/3991/3 "2014-06-27T12:08:42Z")

</div>

Thanks for your rapid reply.  
I just need to replace the // comments with % comments ? I did that but nothing seems change.  
[modela.mod](https://forum.dynare.org/uploads/default/original/2X/e/e1eb0a644dd1e0bb4fc76b894f7c2a1ad7d53018.mod) (7.83 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [27 June 2014 13:43 UTC](https://forum.dynare.org/t/the-generalized-schur-qz/3991/4 "2014-06-27T13:43:04Z")

</div>

The replacing is only for you to be able to execute the code in Matlab by using “Evaluate selection” or F9. You need to fix the circular definition of your steady state values before the model block.
