# Steady state of a MXN model (SG&U) variant

**URL:** <https://forum.dynare.org/t/steady-state-of-a-mxn-model-sg-u-variant/27709>\
**Category:** Steady state\
**Created:** [15 June 2025 09:58 UTC](https://forum.dynare.org/t/steady-state-of-a-mxn-model-sg-u-variant/27709 "2025-06-15T09:58:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![undiv](https://forum.dynare.org/letter_avatar_proxy/v4/letter/u/a87d85/32.png) [@undiv](https://forum.dynare.org/u/undiv)\
**Post date:** [15 June 2025 09:58 UTC](https://forum.dynare.org/t/steady-state-of-a-mxn-model-sg-u-variant/27709/1 "2025-06-15T09:58:06Z")

</div>

Hello. I built a model similar to Uribe & Schmitt-Grohé’s MXN, developed in chapter 8 of their open economy macro textbook. What I did was “subdivide” the exports sector into “booming” and “lagging” export variants. These then get aggregated by a Cobb-Douglas function into a composite exportable good, and the rest of the model is identical to the MXN. The economy is subject to AR(1) processes on the prices of both of these goods (p^b and p^l). My trouble is with the steady state (using steady\_state\_model block). I solved for as many variables as I could by hand, and had to resort to an fsolve to solve numerically for a 13x13 system of equations. That solver isn’t getting it right, possibly because of the initial conditions. I really need help with getting the initial conditions right, which I suspect is the problem. All the files I’m using are attached.

[mxn\_steadystate\_helper.m](https://forum.dynare.org/uploads/short-url/54thO6gGgTD9NDdpirRRutcjLkA.m) (1.2 KB)  
[mxn.mod](https://forum.dynare.org/uploads/short-url/k7PuzCLhhbdlnCvSCvaN6bO9wZ6.mod) (9.3 KB)  
[myfun.m](https://forum.dynare.org/uploads/short-url/bpyEdqJbWxzIfTJV5JVGQCZfZWx.m) (1.3 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:** [17 June 2025 10:47 UTC](https://forum.dynare.org/t/steady-state-of-a-mxn-model-sg-u-variant/27709/2 "2025-06-17T10:47:38Z")

</div>

In such cases there is often still a mistake in the equilibrium conditions that makes the computations fail. Can you simplify the model by e.g. assuming a Cobb-Douglas instead of a CES function. That allows for easier debugging before extending the model.

---

<div class="post-metadata">

**Author:** ![undiv](https://forum.dynare.org/letter_avatar_proxy/v4/letter/u/a87d85/32.png) [@undiv](https://forum.dynare.org/u/undiv)\
**Post date:** [18 June 2025 19:49 UTC](https://forum.dynare.org/t/steady-state-of-a-mxn-model-sg-u-variant/27709/3 "2025-06-18T19:49:50Z")

</div>

Thank you prof. Pfeifer, I’ll try simplifying all aggregators to be Cobb-Douglas and see what I get.
