# Three-country DSGE model with an exogenous rest of the world

**URL:** <https://forum.dynare.org/t/three-country-dsge-model-with-an-exogenous-rest-of-the-world/4913>\
**Category:** Dynare help (legacy posts)\
**Created:** [17 August 2015 09:14 UTC](https://forum.dynare.org/t/three-country-dsge-model-with-an-exogenous-rest-of-the-world/4913 "2015-08-17T09:14:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lkebalo](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/a4c791/32.png) [@lkebalo](https://forum.dynare.org/u/lkebalo)\
**Post date:** [17 August 2015 09:14 UTC](https://forum.dynare.org/t/three-country-dsge-model-with-an-exogenous-rest-of-the-world/4913/1 "2015-08-17T09:14:37Z")

</div>

I am a novice in using dynare. I work on a model of the three countries consisting of two symmetric countries and and exogenous rest of the world. After calculating my initial variables by hand ( four times) I get the following message.

```auto
Residuals of the static equations:

Equation number 1 : 0.0040252
Equation number 2 : 0.0027071
Equation number 3 : 0.039011
Equation number 4 : 0.028677
Equation number 5 : 0.2761
Equation number 6 : 0.27599
Equation number 7 : -0.11505
Equation number 8 : -0.11503
Equation number 9 : 0.0065042
Equation number 10 : 0.0059774
Equation number 11 : 0.0049456
Equation number 12 : 0.004838
Equation number 13 : 0.0014323
Equation number 14 : 0.0094725
Equation number 15 : 0.0044276
Equation number 16 : 0.0044854
Equation number 17 : 0.00060317
Equation number 18 : 0.0083286
Equation number 19 : -0.0030133
Equation number 20 : -0.0016904
Equation number 21 : 5.8101e-005
Equation number 22 : 0.00022456
Equation number 23 : 0.011724
Equation number 24 : -0.43739
Equation number 25 : 0.63054
Equation number 26 : -0.019408
Equation number 27 : 0.19914
Equation number 28 : 0.011547
Equation number 29 : -0.43758
Equation number 30 : 0.63025
Equation number 31 : -0.018779
Equation number 32 : 0.19946
Equation number 33 : 0.018163
Equation number 34 : 0.017891
Equation number 35 : 0.011049
Equation number 36 : 0.010727
Equation number 37 : -0.0081639
Equation number 38 : -0.0078926
Equation number 39 : 0.02933
Equation number 40 : 0.022932
Equation number 41 : -0.0043064
Equation number 42 : -0.0045907
Equation number 43 : -0.0062972
Equation number 44 : -0.00015283
Equation number 45 : -0.097332
Equation number 46 : 0.07694
Equation number 47 : -0.0049179
Equation number 48 : -0.0013573
Equation number 49 : -0.097662
Equation number 50 : 0.076985
Equation number 51 : 0.0023711
Equation number 52 : 0.0021588
Equation number 53 : -0.0024857
Equation number 54 : -0.0025024
Equation number 55 : -0.002705
Equation number 56 : -0.0029656
Equation number 57 : 0.00047664
Equation number 58 : -0.12331
Equation number 59 : -0.12339
Equation number 60 : 0
Equation number 61 : 0
Equation number 62 : 0
Equation number 63 : 0
Equation number 64 : 0
Equation number 65 : 0
Equation number 66 : -3.0991e-005
Equation number 67 : 1.7564e-005
Equation number 68 : 3.8296e-005
Equation number 69 : -3.8297e-005
Equation number 70 : 0.00014365
Equation number 71 : 0.00017693
Equation number 72 : -0.00014364
Equation number 73 : -0.00012838
Equation number 74 : 0.00013981

??? Error using ==> print_info at 74
Impossible to find the steady state. Either the model doesn't have a
steady state, there are an infinity of steady states, or the guess
values are too far from the solution

Error in ==> steady at 92
    print_info(info,options_.noprint, options_);

Error in ==> Cod at 655
steady;

Error in ==> dynare at 180
evalin('base',fname) ;
```

Can anyone help me please.  
I will attach my .mod file  
[Cod.mod](https://forum.dynare.org/uploads/default/original/2X/2/2bbf178e5e952daa44152fe380ea6c7393dffd79.mod) (21.2 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:** [19 August 2015 08:59 UTC](https://forum.dynare.org/t/three-country-dsge-model-with-an-exogenous-rest-of-the-world/4913/2 "2015-08-19T08:59:04Z")

</div>

Increase maxit:

`steady(maxit=1000);
`  
More generally for your model, see my reply at [[An infinite element was encountered](https://forum.dynare.org/t/an-infinite-element-was-encountered/4923/1))
