Commit Graph

29 Commits (7e770f69e791e705ab535126e0157130dc9d40c6)

Author SHA1 Message Date
Sébastien Villemot 7e770f69e7
Remove workaround for errors in MEX files
Because at some point throwing exceptions from MEX files (with mexErrMsgTxt())
was not working under Windows 64-bit, we had designed a workaround to avoid
using exceptions.

Most MEX files were returning an error code as their first (or sometimes last)
argument, and that code would have to be checked from the MATLAB code.

Since this workaround is no longer needed, this commit removes it. As a
consequence, the interface of many MEX files is modified.

For some background, see https://www.dynare.org/pipermail/dev/2010-September/000895.html
2020-01-10 18:33:11 +01:00
Sébastien Villemot 49dc997073
Global reindentation of MATLAB code (excluding submodules)
Also convert to Unix end-of-lines, and remove trailing whitespaces.
2019-12-20 16:30:27 +01:00
Johannes Pfeifer c0c3a4c05c evaluate_planner_objective.m: add warning if order>1 is used
Also modernizes output format
2019-12-13 14:37:00 +01:00
Sébastien Villemot 82cef48eb4
A_times_B_kronecker_C MEX: remove the OpenMP codepath
Testing shows that it is slower than the BLAS path.
2019-06-25 17:26:14 +02: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 (Scylla) 7be8f10e0e Use cells of strings instead of char arrays. 2018-01-09 22:30:01 +01:00
Stéphane Adjemian (Charybdis) 1bf81c9f5a Fixed copyright notices. 2017-05-18 18:36:38 +02:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Michel Juillard f3ee32690e fixed bug introduced in commit 660fc6 2015-11-10 09:27:36 +01:00
Michel Juillard 53e9307fe2 modified too big message in evaluate_planner_objective
Mention the issue in the doc
2015-11-09 09:15:44 +01:00
Michel Juillard 660fc64471 adding check for model size before computing value of planner objective. 2015-11-09 09:03:55 +01:00
Johannes Pfeifer 9d90a204f7 Clean up evaluate_planner_objective.m 2015-08-30 11:16:26 +02:00
Johannes Pfeifer cc3aeafd00 Save planner objective function with discretionary_policy 2015-08-26 10:00:35 +02:00
Michel Juillard 58c40fdca9 ramsey_policy: correcting the computation of the value of the
objective function; adding details about the period objective function
in the manual.
2013-12-13 10:44:29 +01:00
Stéphane Adjemian (Charybdis) 4052d4ccaf Cosmetic changes. Use skipline() instead of disp(' '). 2013-07-10 17:12:34 +02:00
Sébastien Villemot c121aa14b1 Remove oo_.dr.{nstatic,npred,nboth,nfwrd,nspred,nsfwrd}
Replace them by equivalents in M_ (and an extra one: M_.dynamic).

IMPORTANT POINT: oo_.dr.npred used to count both purely backward and mixed/both
variables. This was the cause of lots of confusion. The new M_.npred only
counts purely backward variables.

We now have the following indentities:

M_.npred + M_.nboth + M_.nfwrd + M_.nstatic = M_.endo_nbr
M_.nspred = M_.npred + M_.nboth
M_.nsfwrd = M_.nfwrd + M_.nboth
M_.ndynamic = M_.npred + M_.nboth + M_.nfwrd
2012-11-16 20:05:13 +01:00
Michel Juillard 1eef328de0 correcting bug in welfare computation when using ramsey_policy and
histval
2012-06-18 20:29:35 +02:00
Michel Juillard 8f4fb2f16f fixed welfare evaluation for arbirtrary value of the state
variables. The preprocessor still needs to be modified to allow
arbitrary initial value of the Lagrange multipliers
2012-06-13 21:00:38 +02:00
Sébastien Villemot 1f9cea669a Update copyright notices 2012-06-08 18:22:34 +02:00
Michel Juillard 8fa6a9883a replacing call to dr1() by call to stochastic_solvers() 2012-03-15 16:45:25 +01:00
Stéphane Adjemian (Charybdis) 560800bcc5 Changed the order of the output arguments in kronecker product related mex routines. 2011-09-05 18:57:42 +02:00
Michel Juillard 1617b6a410 improving Ramsey policy 2011-06-22 11:31:35 +02:00
Michel Juillard 6f1c02769e fixing evaluation of objective function under optimal policy 2011-05-24 16:02:42 +02:00
Sébastien Villemot 02652f6eb8 Updated copyright notices 2011-02-04 17:27:33 +01:00
Sébastien Villemot 757a9067c0 Global reindentation of MATLAB files 2011-02-04 17:17:48 +01:00
Michel Juillard 956b42fdff corrected bugs in shock_decomposition 2010-04-27 19:50:42 +02:00
sebastien 129b6fe060 Fixed a few copyright dates
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3315 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 09:48:23 +00:00
michel a54a6cfbfa 4.2: adding function header
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3303 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-05 15:06:45 +00:00
michel 9ef426c3a9 4.2: added evaluate_planner_objective.m
modified ramsey_policy to display objective function


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3302 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-05 14:59:49 +00:00