Problem in steady state solving

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Problem in steady state solving

Postby rdoctors » Wed Sep 02, 2015 8:20 pm

Hello, I'm working with a fiscal model in both matlab and octave (octave 3.8.1 and dynare version 4.4.3). My routine is to run a simulation file, where I set the value of parameters and compute the steady state (calling mod_fiscal_04_ss_solve), prior to runing the .mod file. The idea is to variate the nr_i parameter (it can be 0.2, 0.4, 0.6) which stands for the proportion of non-ricardian agents (who work) in the economy. When I run this simulation file on matlab, it works perfectly. However, when running in octave, it doesn't "work" for nr_i = 0.2 and nr_i = 0.6 . I've checked the steady state values and they are equal for 0.4 but different for 0.2. Does anyone know why this is happening? The files (.m and .mod) are attached.

Thank you!!!!

p.s: I believe the problem is in the fsolve() function (found in the mod_fiscal_04d_ss_solve.m file)
Attachments
mod_fiscal_04_ss_solve.m
(11.91 KiB) Downloaded 80 times
mod_fiscal_04_ss.m
(11.13 KiB) Downloaded 78 times
mod_fiscal_04d_ajs_tax.mod
(28.21 KiB) Downloaded 81 times
simula_mod_fiscal_04_bre_02b.m
(13.36 KiB) Downloaded 85 times
rdoctors
 
Posts: 9
Joined: Tue Jul 28, 2015 8:43 pm

Re: Problem in steady state solving

Postby MichaelWilson » Tue Sep 08, 2015 10:15 am

I have big electrical circuit in Simscape (tens of thousands of diods and resistances, no dynamic elements like capacitors or inductances), and I need to solve many steady state problems on that as fast as possible.
MichaelWilson
 
Posts: 1
Joined: Tue Sep 08, 2015 10:09 am

Re: Problem in steady state solving

Postby jpfeifer » Sun Sep 13, 2015 5:59 pm

Even for the other cases, Matlab and Octave provided different steady states on my machine. Could it be that your steady state is not unique and the local solver you use converges to different points? If yes, you should ideally provide analytical steady state values.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 1 guest

cron