Commit Graph

34 Commits (62f608eb805822dbc166d579a54dda9ec2e2288a)

Author SHA1 Message Date
Sébastien Villemot 24f689b2de
restricted_steadystate: turn into local function of evaluate_steady_state_file 2023-02-17 22:01:28 -05:00
Johannes Pfeifer 64d61c3268 steady state computation: trap cases where parameters are NaN 2022-12-28 11:48:23 +01:00
Stéphane Adjemian (Charybdis) f1aff2b370
Remove calls to dbstack in dynare_solve.
Adding three input parameters for maxit, tolf and tolx.

Closes #1841.
2022-04-10 20:29:57 +02:00
Stéphane Adjemian (Ryûk) ef2bb4e669
Return and use errorcode from dynare_solve.
Note that the interpretation of the error code depends on the nonlinear solver.
2022-04-09 16:06:24 +02:00
Sébastien Villemot 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Johannes Pfeifer 607a273bb0 Correctly distinguish tolerance between steady and perfect foresight
steady uses options_.solve_tolf as a termination criterion, so subsequent checks should do the same. Similarly, solve_tolx was never used.
2020-07-06 13:11:23 +02:00
Johannes Pfeifer 0c01c31491 Remove global variables from user-defined steady state files
M_ and options_ are now passed as an input; params is an output as in the _steadystate2.m files
2019-11-26 17:05:14 +01:00
Houtan Bastani ce97e51aec
small fixes 2019-03-06 14:01:29 +01:00
Johannes Pfeifer 4ecbcbb136 evaluate_steady_state_file.m: Remove redundant setting of auxiliary variables
The original problems seems to have been fixed by #1133

Essentially reverts 3c7e60b744 and closes #1175
2018-11-16 14:12:55 +01:00
Johannes Pfeifer f947a31b80 evaluate_steady_state_file.m: fix two bugs in debugging mode 2018-11-16 09:24:43 +00:00
Sébastien Villemot a1b8bd39b2 Move the location of various generated files on the filesystem
- M and MEX files are now under +${MODELNAME}/
- bytecode, C source and JSON now under ${MODELNAME}/model/
2018-06-27 17:03:39 +02:00
Stéphane Adjemian (Charybdis) ad0bff3771 Added comments. 2018-01-24 17:24:21 +01:00
Johannes Pfeifer 99e4cb6e7e evaluate_steady_state_file.m: Condition call to str2func on function being present
Workaround for Octave bug https://savannah.gnu.org/bugs/?52568
2018-01-24 17:21:16 +01:00
Stéphane Adjemian (Scylla) 7be8f10e0e Use cells of strings instead of char arrays. 2018-01-09 22:30:01 +01:00
Houtan Bastani 718ff3d61c preprocessor: only create *set_auxiliary_variables.m file if there will be something in it. Closes #1384 2017-08-29 14:44:52 +02:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Stéphane Adjemian (Charybdis) a53636e24e Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Stéphane Adjemian (Charybdis) 88e1701289 Removed useless commas and semicolons. 2017-05-16 13:24:46 +02:00
Johannes Pfeifer a93d68fb35 Make evaluate_steady_state.m honor nocheck flag
Closes #1054
2016-03-25 22:12:52 +01:00
Houtan Bastani 710e8ef3a5 fix copyright dates for 2016 2016-02-23 14:04:04 +01:00
Stéphane Adjemian (Hermes) 3c7e60b744 Bug related to the steady state of aux. variables.
Appears in CMR's model where the steady state of the auxiliary variables
is not correct if set_auxiliary_variables routine is only called once.

Added a debug mode (false by default) to check that the mapping defined
by set_auxiliary_variables routine is invariant.
2016-02-05 00:13:20 +01:00
Johannes Pfeifer f5e8aeb552 Add missing return statement to evaluate_steady_state_file.m
Otherwise, the code will subsequently crash if the steady state file does not return a conformably sized vector, although an error code was returned
2015-07-27 18:10:27 +02:00
Michel Juillard f03839cf12 removed "global options_" in dynare_solve.m and made it an
argument. Modified all calling functions.
2015-05-25 17:15:09 +02:00
Stéphane Adjemian (Hermes) 8b6040717a Added missing semicolon. 2015-05-18 18:00:09 +02:00
Michel Juillard fa7d123ea4 fix bug when there is no parameter declared in the model 2014-04-05 16:40:25 +02:00
Johannes Pfeifer cf4f7f362f Fix bug where NaN in residual of steady state were not detected with steady_state_model 2014-03-03 19:37:57 +01:00
Stéphane Adjemian (Scylla) e67d3d3fea Added missing semicolon. 2012-09-20 16:38:19 +02:00
Michel Juillard a6648b59ed function evaluater_steady_state_file returns full size steady state
vector (including auxiliary variables) even in case of error flag in
evaluating steady state
2012-06-21 18:16:49 +02:00
Johannes Pfeifer 6585b8ef17 Take care of cases where steady state file updates some but not all parameters that are NaN. 2012-05-11 18:16:23 +02:00
Michel Juillard f37f4d4b49 fixing bug in computing steady state of Ramsey policy 2012-04-23 13:39:50 +02:00
Michel Juillard d1120da658 fixing bugs in evaluation of steady state file introduced in last
related commit
2012-04-21 11:39:21 +02:00
Michel Juillard f8ecc4d6ba reorganized code for evaluating steady state file 2012-04-21 10:12:00 +02:00
Marco Ratto 4acd50bdaf When using steady state in the old format, M_ should be updated beforehand. 2011-11-07 09:14:26 +01:00
Michel Juillard ee7078e56c factoring out steady-state computations; steady_state_model now
generates <fname>_steadystate2.m returning parameters as well in case
they have been modified by the user. Added several test cases.
2011-10-12 21:51:14 +02:00