# Problem with eigenvalue

**URL:** <https://forum.dynare.org/t/problem-with-eigenvalue/14116>\
**Category:** Stochastic simulations\
**Created:** [8 July 2019 16:29 UTC](https://forum.dynare.org/t/problem-with-eigenvalue/14116 "2019-07-08T16:29:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jessie](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/5f9b8f/32.png) [@Jessie](https://forum.dynare.org/u/Jessie)\
**Post date:** [8 July 2019 16:29 UTC](https://forum.dynare.org/t/problem-with-eigenvalue/14116/1 "2019-07-08T16:29:30Z")

</div>

Hello, everybody. I have a problem of eigenvalue. I have tried lots of methods such as changing the parameters or initial value, but those do not work. I sincerely hope that someone can help me. Thanks a lot. And here is the result of my codes.

```auto
Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Using 64-bit preprocessor
Starting Dynare (version 4.5.7).
Starting preprocessing of the model file ...
Found 50 equation(s).
Evaluating expressions...done
Computing static model derivatives:
 - order 1
Computing dynamic model derivatives:
 - order 1
 - order 2
Processing outputs ...
done
Preprocessing completed.

x0 =

   1.0e+04 *

    0.0000 2.7278 0.0000 0.0000 0.0000

                                         Norm of First-order 
 Iteration Func-count f(x) step optimality
     0 6 7.60708e-05 7.4
     1 12 1.85211e-06 0.00316776 1.65      
     2 18 6.34728e-08 0.00250835 0.275      
     3 24 4.97948e-08 0.000692634 0.000686      
     4 30 4.96614e-08 0.000676148 0.00858      
     5 36 4.94527e-08 0.000558325 0.00138      
     6 42 4.93268e-08 0.000562854 0.00521      
     7 48 4.9166e-08 0.000556477 0.00267      
     8 54 4.90414e-08 0.000519896 0.00439      
     9 60 4.89033e-08 0.00056245 0.0042      
    10 66 4.87772e-08 0.000500084 0.00431      
    11 72 4.86549e-08 0.00056682 0.00571      
    12 78 4.85256e-08 0.000491437 0.00572      
    13 84 4.84114e-08 0.000570044 0.00613      
    14 90 4.82817e-08 0.000490652 0.00468      
    15 96 4.8187e-08 0.000575116 0.00947      

Equation solved, inaccuracy possible.

The vector of function values is near zero, as measured by the selected value
of the function tolerance. However, the last step was ineffective.

<stopping criteria details>

STEADY-STATE RESULTS:

ytf 0
rmt 0
ct 0
it 0
gt 0
gdpt 0
kt 0
lamt 0
qtk 0
Ht 0
Hst 0
Hpt 0
yst 0
ypt 0
kst 0
kpt 0
nst 0
npt 0
bst 0
bpt 0
Ast 0
Apt 0
wstbar 0
wptbar 0
mt 0
wt 0
wset 0
wpet 0
rtk 0
Rt 0
Rst 0
Rpt 0
pait 0
pwt 0
pst 0
ppt 0
taot 0
dt 0
dgs 0
fs 0
dfs 0
nspaig 0
nspaigb 0
dgp 0
fp 0
dfp 0
nppaig 0
nppaigb 0
gp 0
gs 0
Error in 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 mod0526d (line 701)
oo_.dr.eigval = check(M_,options_,oo_);

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

```

---

<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:** [10 July 2019 08:29 UTC](https://forum.dynare.org/t/problem-with-eigenvalue/14116/2 "2019-07-10T08:29:19Z")

</div>

What does `model_diagnostics` return?

---

<div class="post-metadata">

**Author:** ![Jessie](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/5f9b8f/32.png) [@Jessie](https://forum.dynare.org/u/Jessie)\
**Post date:** [10 July 2019 08:53 UTC](https://forum.dynare.org/t/problem-with-eigenvalue/14116/3 "2019-07-10T08:53:06Z")

</div>

No obvious problems with this mod-file were detected.

---

<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:** [10 July 2019 09:12 UTC](https://forum.dynare.org/t/problem-with-eigenvalue/14116/4 "2019-07-10T09:12:18Z")

</div>

Given this singularity, I can only recommend debugging your model by starting with a simplified version.

---

<div class="post-metadata">

**Author:** ![Jessie](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/5f9b8f/32.png) [@Jessie](https://forum.dynare.org/u/Jessie)\
**Post date:** [10 July 2019 09:47 UTC](https://forum.dynare.org/t/problem-with-eigenvalue/14116/5 "2019-07-10T09:47:44Z")

</div>

Okay, thank you very much.
