Hello Dynare team,
First of all, thank you for your availability and for the wonderful tool you provide!
My question is related to what has already been expressed on this forum, but I think goes a step further. I am trying to compute non-linear deterministic simulations using a rather big model (>100 endogenous variables, ~40 of them being dynamic). This is a Smets & Wouters type of NK model, but with two countries in a Monetary Union, Calvo prices and wages. So far, I have used it (successfully) to study cross-country spillovers, with linear simulations. For my research, I need to study how this model behaves with bigger fiscal shocks (>1% of GDP, over several quarters), taking non linearity into account.
The problem is, once write my model in levels and try to launch simul, I run into a convergence problem even for relatively small shocks. I tried the usual and extended the number of simulation periods, it allows me to simulate responses to slightly bigger shocks, but there's a point where even that does not work.
I tried everything I could (change algo, use bytecode, block, differentiate_forward_vars...). What annoys me is that I have the code for another big model and simul has no problem computing responses to very big shocks in that model.
So I guess my question is : are there ways to write the model equations or modeling assumptions that we know simplify calculations? Where should I look first? For instance, should I try to reduce the number of equations or the complexity of each equation? Should I avoid quotients when possible? Does it matter?
PS : BK conditions are met, I can compute the steady state with an external solver, and I have tried several calibrations. The convergence problem is still there even when I get rid of the "à la Calvo" sticky prices, which are the most complicated equations.