Commit Graph

10285 Commits (9abac8ccdbad9d405f93bf28d6500d1de183c791)

Author SHA1 Message Date
Marco Ratto a6f7e02d17 added utilities for optimal distinguishable colors. 2017-03-17 12:41:59 +01:00
Houtan Bastani aa0eceeb38 Merge pull request #1405 from JohannesPfeifer/block_error_code
Make sure block-decomposed model returns with correct error code if I…
2017-03-17 10:45:16 +01:00
Johannes Pfeifer 569de10511 Make sure block-decomposed model returns with correct error code if Inf or NaN is encountered
Missing from 5f85d3a200 where only residual was set to error code. If oo_.deterministic_simulation.status is not set to 0, model will erroneously be considered as solved and homotopy will not be triggered.
2017-03-17 10:07:13 +01:00
Stéphane Adjemian (Charybdis) c921212fe5 Renamed trs field consistently with 1022e675c1. 2017-03-16 23:41:27 +01:00
Stéphane Adjemian (Charybdis) 1022e675c1 Do not use cputime as advised by Mathworks.
cputime time is not a good measure of performance on multithreaded applications.

TODO
 - Change trs field,
 - Adapt testsuite code.
2017-03-16 18:27:01 +01:00
Stéphane Adjemian (Charybdis) 06326d4477 Fixed bug introduced in cad7adc01f. 2017-03-16 18:14:23 +01:00
Stéphane Adjemian (Charybdis) ae3752a0d3 Lowered threshold value for a test. 2017-03-16 15:51:11 +01:00
Stéphane Adjemian (Charybdis) dbffe2a841 Do not check boundaries if the model is not estimated. 2017-03-16 15:50:44 +01:00
Stéphane Adjemian (Charybdis) cc34e16458 Set temporarily mode_compute and mh_replic to zero if estim_params_ is empty. 2017-03-16 15:45:08 +01:00
Stéphane Adjemian (Charybdis) cad7adc01f Added routine for testing if we are currently estimating a model. 2017-03-16 15:03:46 +01:00
Stéphane Adjemian (Charybdis) 5f5c093b2e Renamed isestimation function + Cosmetic changes. 2017-03-16 15:00:02 +01:00
Stéphane Adjemian (Charybdis) feee6f8b7a Fixed typo. 2017-03-15 17:24:45 +01:00
Stéphane Adjemian (Charybdis) 284df20445 Closes #1403. 2017-03-15 16:51:59 +01:00
Stéphane Adjemian d0ab90275b Merge pull request #1402 from JohannesPfeifer/prior_asymptote
Add warning if prior has an asymptote
2017-03-15 16:33:10 +01:00
Stéphane Adjemian (Charybdis) 1ff816d7bf Updates particles submodule. 2017-03-15 16:30:29 +01:00
Stéphane Adjemian (Charybdis) 4f3b35acba Account for Matlab 2017a.
(cherry picked from commit f3a1619040fbb831830791424015d3d3bf8bdbae)
2017-03-13 23:42:48 +01:00
Houtan Bastani ea13b12cf2 preprocessor: add lag info to equation cross references. closes #1398 2017-03-10 16:59:52 +01:00
Johannes Pfeifer 87fc09863d Add warning if prior has an asymptote
Can happen with beta and gamma distribution. Closes #1401
2017-03-10 15:16:33 +01:00
Houtan Bastani 38f36091a9 test suite: increase timeout option for downloading files to 30 seconds 2017-03-08 12:30:58 +01:00
Houtan Bastani 7341ca4e6d Merge pull request #1399 from JohannesPfeifer/dname
Fix check for existence of dname variable
2017-03-07 13:58:29 +01:00
Johannes Pfeifer 56edaf5cb0 Fix check for existence of dname variable 2017-03-07 13:55:29 +01:00
Houtan Bastani 33b38ab643 preprocessor: write error messages to cerr instead of cout, replace \n with endl 2017-03-01 12:44:31 +01:00
Houtan Bastani 2d25858886 preprocessor: fix bug that caused temporary terms not to be printed for the parameter derivatives of the static model. closes #1397 2017-03-01 12:20:55 +01:00
Houtan Bastani 0b52b778ed preprocessor: for consistency, use equations.size() instead of equation_number() in classes that have equations as a field 2017-02-24 11:20:54 +01:00
Stéphane Adjemian (Charybdis) 927b813ed8 Removed printing of debugging info.
Introduced in ffebf6b262.
2017-02-15 13:35:33 +01:00
Stéphane Adjemian (Charybdis) ffebf6b262 Check positive steady state for loglinear option...
1e-9 is too far from zero. Set 1e-16 as a threshold value for the positivity test.
2017-02-15 12:41:56 +01:00
Stéphane Adjemian (Charybdis) 8925e7ca1f Cosmetic patch (remove some warnings about potentially uninitialized variables in bytecode). 2017-02-13 19:22:26 +01:00
Houtan Bastani 39855c95d2 preprocessor: aesthetic fix 2017-02-10 12:47:43 +01:00
Houtan Bastani fabca90345 preprocessor: aesthetic fix 2017-02-09 16:23:42 +01:00
Houtan Bastani 7ced4b5580 preprocessor: change error to warning because we don’t end processing in this situation; fix error message 2017-02-09 16:21:18 +01:00
Houtan Bastani edd2e98086 preprocessor: replace exit(1) with exit(EXIT_FAILURE) 2017-02-09 12:46:37 +01:00
Stéphane Adjemian (Charybdis) 593d62a7c1 Removed optimizers/fs2000_12.mod from testsuite...
Because the Global Optimization Toolbox is not installed on dynbot@sedna.
2017-02-08 14:29:34 +01:00
Stéphane Adjemian (Charybdis) 9fbef0c107 Removed penalty_hessian routine.
+ Code factorization.
 + Added an option for using the penalized objective when computing numerically
 the hessian at the mode.

Previous behaviour (introduced with penalty_hessian routine) was to compute the
hessian matrix at the mode with the penalized objective function (instead of
the original objective function). This behaviour hides problematic situations,
where the computed hessian (using the original objective) would not be full
rank. For instance, if the estimation ends up with a parameter on (or very
close to) the bounds of its possible values (which is often not a desirable
outcome), the estimated posterior variance would be zero for this
parameter (with the original objective) because the hessian is not finite in
this direction, while the posterior variance would be positive if the penalized
objective is used instead. But this estimate would not be reliable by
construction of the penalty which is quite ad-hoc (more fundamentally I do not
think that there exists any rational for approximating the covariance matrix
with the inverse of the hessian matrix if the mode is on the border of the set
of possible values).

This commit restore the behaviour previous to 2446ab02ba.

An option is available for computing the hessian with the penalized
objective function.
2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) b14cf33c8f Changed priors in tests/optimizers/fs2000_* integration tests.
To avoid asymptote at zero on the autoregressive parameter rho.
2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) 5b73d7d59c Added new optimization routine (particleswarm).
Only available under Matlab if the Global Optimization Toolbox is installed.
2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) 35078e13ee Completed header + cosmetic changes. 2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) 8d4abe4a9f Cosmetic changes. 2017-02-08 13:07:24 +00:00
Stéphane Adjemian (Charybdis) e71e89bb38 Added check on Octave version. 2017-02-08 13:07:24 +00:00
Houtan Bastani e88739a5ea doc: add preprocessor copyright info 2017-02-01 18:16:51 +01:00
Houtan Bastani 25e9a81b71 doc: update for preprocessor 2017-02-01 18:06:44 +01:00
Houtan Bastani 3776b910a1 preprocessor: remove introduction to C++ programming 2017-01-31 17:11:28 +01:00
Houtan Bastani 5b6a888d7f preprocessor: fix typo 2017-01-31 17:11:03 +01:00
Houtan Bastani f1d607af99 preprocessor: remove extra exogenous variables. closes #841 2017-01-27 22:48:17 +01:00
Houtan Bastani 3a0b9a1143 preprocessor: don’t automatically declare external functions 2017-01-27 20:36:26 +01:00
Houtan Bastani 3d4619fd85 preprocessor: handle undeclared external functions and lagged variables 2017-01-27 20:36:26 +01:00
Houtan Bastani cfae273038 keep track of all times an undeclared variable is encountered 2017-01-27 20:36:26 +01:00
Houtan Bastani bfd239aa26 preprocessor: issue warnings for undeclared model variables when the end of the model block is encountered. #1286 2017-01-27 20:36:26 +01:00
Stéphane Adjemian (Lupi) 1cabe76b06 Do not compute posterior kernel densities in some integration tests.
These data are not used in the tests, and take a lot of space in RAM and on
the disk (when the results, e.g. oo_, are saved in <MOD_FILE_NAME>_results.mat).
2017-01-27 15:15:55 +01:00
Stéphane Adjemian 5285f581e8 Merge pull request #1383 from JohannesPfeifer/readme
readme.md: Fix typos and add info on make clean
2017-01-27 15:09:48 +01:00
Johannes Pfeifer f9f755770d readme.md: Fix typos and add info on make clean and build dependencies 2017-01-27 14:28:19 +01:00