Commit Graph

15963 Commits (da4bc40e662832ded42eae484fe60ce553c8705c)

Author SHA1 Message Date
Willi Mutschler da4bc40e66
Make undocumented zero_moments_tolerance option local to disp_moments
See discussion in https://git.dynare.org/Dynare/preprocessor/-/merge_requests/85
2023-10-18 23:27:45 +02:00
Sébastien Villemot 5145bd0708
New option “relative_to_initval” to “mshocks” block 2023-10-18 16:45:06 -04:00
Sébastien Villemot d78dea3086
Use __builtin_unreachable() to silent some GCC warnings
This is cleaner than using exit() for that purpose.
2023-10-18 14:28:54 -04:00
Sébastien Villemot daa6b5569d
mshocks: better match to the semantics given in the manual
Ensure that the block is always interpreted multiplicatively relative to the
steady state, and not relative to the pre-existing shock value (if there was
already a shock declared for the same exogenous and period(s)).
2023-10-18 14:28:54 -04:00
Sébastien Villemot 357076feb4 Merge branch 'macos-installer-website' into 'master'
CI: deploy unstable versions of macOS arm64

See merge request Dynare/dynare!2198
2023-10-18 15:45:16 +00:00
Willi Mutschler e03d6f3c1f
CI: deploy unstable versions of macOS arm64 2023-10-18 02:34:31 +02:00
Sébastien Villemot 39f9d4352a
The “mshocks” block now accepts the “learnt_in” option 2023-10-17 17:24:15 -04:00
Sébastien Villemot 66ccb3b3d3
Manual: fix typo in description of “multiply” keyword in “shocks(learnt_in=…)” block
Also add a missing word.
2023-10-17 17:19:20 -04:00
Sébastien Villemot 113cfb9c47
Merge branch 'macos-installer' of git.dynare.org:wmutschl/dynare
Ref. !2197
2023-10-17 09:26:47 -04:00
Sébastien Villemot 9a0462a8a6
Bytecode: remove a couple of useless casts 2023-10-16 18:06:42 -04:00
Sébastien Villemot 06a7acf19b
Bytecode: enforce consistent typing of size variables 2023-10-16 18:00:11 -04:00
Sébastien Villemot 651fed87be
Bytecode: remove warnings about narrowing (-Wnarrowing) 2023-10-16 17:58:36 -04:00
Sébastien Villemot b0fa610357
Bytecode: remove warnings about uninitialized variables (-Wmaybe-uninitialized)
By the way, in the dynamic case, ensure that solve_algo variable corresponds to
options_.solve_algo; it would previously correspond to
options_.stack_solve_algo, while there is already a separate stack_solve_algo
variable for that purpose.
2023-10-16 17:43:20 -04:00
Willi Mutschler fb63a8eadb
macOS installer: fix typo in welcome page 2023-10-16 22:12:09 +02:00
Sébastien Villemot eae9902cb8
Bytecode: restrict scope of some variables 2023-10-16 15:39:13 -04:00
Sébastien Villemot 3e5591d41f
New “static_mfs” option to the “model” block (and the “model_options” command) 2023-10-16 11:57:02 -04:00
Sébastien Villemot 4875554a39
Perfect foresight homotopy: make marginal linearization more robust
For marginal linearization, an extra simulation is needed. This extra
simulation is first computed using the first simulation as guess value. If that
does not work, the present commits adds an additional attempt for computing
that extra simulation, using a full homotopy loop from the beginning.

As a consequence, the present commits puts the homotopy loop in a dedicated
function.
2023-10-13 15:31:44 -04:00
Sébastien Villemot 2ae485705e
Perfect foresight homotopy: turn a nested function into a local one
The behaviour of local functions is easier to understand, since they do not
have access to the workspace of the caller.
2023-10-13 14:40:45 -04:00
Sébastien Villemot 4f74ceb937
Testsuite: fix issue with Octave in a Wayland desktop session
If under a Wayland desktop session, some graphics would be displayed on the
screen, despite Octave being run in the virtual X11 frame buffer (xvfb).
Moreover, some unexplained random crashes would occur.

This commit ensures that Wayland is never used when running the testsuite.

By the way, add a command to explain why xvfb-run is needed and the
--no-window-system option cannot be run (see commit
96346b77e5).
2023-10-13 14:39:55 -04:00
Sébastien Villemot cc7c024389
Perfect foresight homotopy: display the full output of every iteration
As a consequence, print the full iterations summary table after each iteration.
2023-10-13 09:19:10 -04:00
Sébastien Villemot 9ebd8a8372
Make perfect foresight hotomopy loop more readable
Only modify oo_ when the homotopy procedure is finished, now that oo_ is no
longer an input to perfect_foresight_solver_core.

By the way, fix the treatment of the exogenous steady state (it is now set
in a consistent way with the endogenous steady state, if the shock is not
simulated up to 100%).

Also fix the initial guess when doing a second attempt at recomputing the
terminal steady state and failing (in the absence of a permanent shock). It was
supposed to use the initial steady state as an initial guess for that second
attempt (through oo_.steady_state), but since that latter variable was modified
in the loop, it would actually correspond to the same initial guess as in the
first attempt.
2023-10-13 09:16:37 -04:00
Sébastien Villemot e26f3f5d06
Build system: remove trailing space in parsed Octave version 2023-10-12 16:00:09 -04:00
Sébastien Villemot a6eb943aae
Remove oo_ as an input argument to perfect_foresight_solver_core 2023-10-12 15:44:53 -04:00
Sébastien Villemot cd17a2dd6d
CI: reenable running of test_matlab job by default
It had been inadvertently disabled in commit
16be379493.
2023-10-12 15:02:55 -04:00
Sébastien Villemot 20e1540892 Merge branch 'macos-installer' into 'master'
Improvements to macOS installer

Closes #1893, #1790, and #1894

See merge request Dynare/dynare!2149
2023-10-12 18:37:00 +00:00
Sébastien Villemot e4a4d2d8e6
Bytecode MEX: get M_ and options_ through input arguments rather than as global variables 2023-10-11 18:50:32 -04:00
Sébastien Villemot b59dc2cf1a
det_cond_forecast: fix bug with bytecode+block
The plan must immediately follow the “extended_path” string in the input
arguments of bytecode. Bug introduced in f84753025d.
2023-10-11 18:50:32 -04:00
Sébastien Villemot 88146bcc6f
solve_block_decomposed_problem: drop oo_ as an input argument 2023-10-11 18:50:32 -04:00
Sébastien Villemot a241aa2bd7
Drop (almost empty) initvalf.m wrapper 2023-10-11 18:50:32 -04:00
Sébastien Villemot f94e7ae9a6
Perfect foresight homotopy: display duration of every iteration 2023-10-11 18:50:32 -04:00
Sébastien Villemot b4e2a0be48
Manual: fix typo in name of perfect_foresight_with_expectation_errors_solver 2023-10-11 18:50:31 -04:00
Stéphane Adjemian (Ryûk) 2c923c613b
Closes #1835. 2023-10-11 21:40:59 +02:00
Willi Mutschler 16be379493
CI: add job to create arm64 macOS pkg 2023-10-11 17:47:10 +02:00
Willi Mutschler 987c6f2e00
macOS installer: improve reference manual 2023-10-11 17:34:43 +02:00
Willi Mutschler a3b05f6d74
macOS installer: improve welcome and conclusion of installer
[skip ci]
2023-10-11 17:34:43 +02:00
Willi Mutschler 6d2958625d
macOS installer: force non-admin installs
[skip ci]
2023-10-11 17:34:43 +02:00
Willi Mutschler 3d057a6605
macOS installer: fix typo 2023-10-11 17:34:43 +02:00
Willi Mutschler 5213adc0ad
macOS installer: clarify Xcode CLT license in conclusion page 2023-10-11 17:34:43 +02:00
Willi Mutschler cb0ece6d82
manual: fix typo
[skip ci]
2023-10-11 17:34:43 +02:00
Willi Mutschler d5649a53fa
macOS built script: make shellcheck happy
Added double quotes to variables
2023-10-11 17:34:43 +02:00
Willi Mutschler bb3aa0a206
macOS installer: cosmetical changes 2023-10-11 17:34:43 +02:00
Willi Mutschler cc9102248c
macOS installer: improve sed command to get GCC version 2023-10-11 17:34:43 +02:00
Willi Mutschler 6e98e9849f
macOS installer: add instructions if /Applications/Dynare is owned by root 2023-10-11 17:34:43 +02:00
Willi Mutschler cdd632ed07
macOS installer doc: fix capitalization of GCC and path to Clang 2023-10-11 17:34:43 +02:00
Willi Mutschler 01c1df6c93
README: improve macos compilation instructions 2023-10-11 17:34:43 +02:00
Willi Mutschler 81b2fe4c88
manual: change macOS version 2023-10-11 17:34:43 +02:00
Willi Mutschler 158abbd0fd
macOS installer: create both arm64 and x86_64 packages 2023-10-11 17:34:43 +02:00
Willi Mutschler 83910ddae3
macOS installer: don't require admin + ability to change install path
id="org.dynare.VERSION_NO_SPACE" fixes #1790, i.e old Dynare versions will not get uninstalled.
2023-10-11 17:34:43 +02:00
Willi Mutschler d480bbdcac
manual: workaround if MATLAB does not see Xcode license agreement
because MATLAB checks the directory of Xcode and not of the Command Line Tools
2023-10-11 17:34:43 +02:00
Willi Mutschler de5b37fca7
macOS installer: remove gcc option and local homebrew install
Fixes #1893
Closes #1894
Explain how to get Xcode CLT and gcc via homebrew in installer at the end using a conclusion.html file.
Clarify this also in the manual.
2023-10-11 17:34:43 +02:00