Commit Graph

1602 Commits (42d40d00a6086d7d093e1f310333dec7a92a8b81)

Author SHA1 Message Date
Houtan Bastani 42d40d00a6 preprocessor: fix int/size_t comparison warning for g++ 2017-09-15 10:59:58 +02:00
Houtan Bastani f9901a990e remove file that was erroneously included in 25121bca4f9c97fed28599e9f9adeba2028e5bd0 2017-09-15 09:39:59 +02:00
Houtan Bastani 620f04a422 preprocessor: histval lag check must be made after transformation to the dynamic model due to ramsey_policy. closes #1193 2017-09-13 11:37:49 +02:00
Houtan Bastani 113b8799f3 preprocessor: histval should only accept lag values <= 0. closes #1510 2017-09-13 10:16:19 +02:00
Houtan Bastani 4213c42b96 preprocessor: factorize code that checks for valid symb_id 2017-09-12 14:37:37 +02:00
Houtan Bastani 7c884bcae2 preprocessor: remove size filed in Symbol Table class. closes #1380 2017-09-12 14:37:32 +02:00
Houtan Bastani 6e2024b6ed preprocessor: remove commented RamseyConstraintsStatement code 2017-09-12 13:29:43 +02:00
Houtan Bastani 5c24fea322 preprocessor: allow variables that become state variables in ramsey_policy to be set in histval. closes #1193 2017-09-11 18:14:56 +02:00
Houtan Bastani dff540df4e preprocessor: allow passing mod file as string. Closes #1509
Usage: ./dynare_m $'<<mod file text>>'

The $’’ expands special characters. This is necessary because our setup for native matlab statements require that they end with a newline. In other words, the rest of the mod file can be sent on one line, but if there is a native matlab statement you must enter a `\n` after it.

NB: In this case, apostrophes must be escaped: ' becomes \'

e.g., to run tests/example1.mod:
./dynare_m  $'//Example 1 from Collard\'s guide to Dynare\nvar y, c, k, a, h, b;varexo e, u;verbatim;% I want these comments included in\n% example1.m 1999q1 1999y\n%\nvar = 1;\nend;parameters beta, rho, alpha, delta, theta, psi, tau;alpha = 0.36;rho   = 0.95;tau   = 0.025;beta  = 0.99;delta = 0.025;psi   = 0;theta = 2.95;phi   = 0.1;\nmodel;c*theta*h^(1+psi)=(1-alpha)*y;k = beta*(((exp(b)*c)/(exp(b(+1))*c(+1)))*(exp(b(+1))*alpha*y(+1)+(1-delta)*k));y = exp(a)*(k(-1)^alpha)*(h^(1-alpha));k = exp(b)*(y-c)+(1-delta)*k(-1);a = rho*a(-1)+tau*b(-1) + e;b = tau*a(-1)+rho*b(-1) + u;end;initval;y = 1.08068253095672;c = 0.80359242014163;h = 0.29175631001732;k = 11.08360443260358;a = 0;b = 0;e = 0;u = 0;end;shocks;var e; stderr 0.009;var u; stderr 0.009;var e, u = phi*0.009*0.009;end; stoch_simul;'
2017-09-08 17:40:04 +02:00
Houtan Bastani 44ce31dd2a preprocessor: add backslashes to log output in latex. closes #1507 2017-09-08 11:06:37 +02:00
Stéphane Adjemian (Scylla) 8b94cb1ab0 Added option stochastic to Dynare command. 2017-08-31 10:19:43 +02:00
Houtan Bastani c1debb1afe preprocessor: don’t allow write_latex_steady_state_model without steady_state_model block. #1496 2017-08-30 15:46:17 +02:00
Houtan Bastani d23a684bf6 preprocessor: add write_latex_steady_steade_model command. Closes #1496 2017-08-30 14:30:06 +02:00
Houtan Bastani 49ec4f3545 Merge branch 'state_var' 2017-08-29 16:08:11 +02:00
Houtan Bastani 85ab36750e 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
Houtan Bastani b6176ae406 preprocessor: add parameter_set option to evaluate_smoother command. Closes #1477 2017-08-28 18:25:37 +02:00
Houtan Bastani 12ddf85690 preprocessor: aesthetic fix 2017-08-28 17:47:37 +02:00
Houtan Bastani 076fb75f98 preprocessor: add model_local_variable declaration for declaring model local variables with tex names. Closes #563 2017-08-28 17:24:56 +02:00
Houtan Bastani 31dfe2a6b6 Add nopreprocessoroutput option to dynare. Closes #1390 2017-08-25 14:26:39 +02:00
Houtan Bastani 9dbb6736c5 preprocessor: add missing option to dynare options message 2017-08-25 14:20:08 +02:00
Houtan Bastani d83694f1d8 preprocessor: fix spacing in message 2017-08-25 14:20:08 +02:00
Houtan Bastani f0352541d5 preprocessor: ramsey_model: remove unused symbol_list syntax. Closes #1392 2017-08-24 16:43:36 +02:00
Houtan Bastani 48d6155dbc preprocessor: add write_equation_tags option to write_latex_original_model and write_latex_static_model. closes #1431 2017-08-24 16:10:53 +02:00
Johannes Pfeifer f83d640525 Fix typo in ParsingDriver.hh 2017-08-16 19:45:58 +02:00
Houtan Bastani 2930977129 preprocessor: store max lead/lag info, write to output 2017-07-27 12:33:19 -04:00
Houtan Bastani 096e9e5d53 Merge pull request #1470 from JohannesPfeifer/use_shock_groups
Fix bug in use_shock_groups
2017-07-07 12:41:22 +02:00
Johannes Pfeifer 52f3b964b2 Fix bug in use_shock_groups and colormap
Option was not written to correct subfield of options_-structure. Related to 7cd56e96877de4ed2dd22bb579884ab292034d71
2017-07-07 12:38:20 +02:00
Houtan Bastani 48abcfb6d4 preprocessor: only create one dynamic/static JSON file 2017-06-29 15:11:22 +02:00
Houtan Bastani 478039db05 preprocessor: couch JSON stdout output in constant text so users can easily find it 2017-06-29 13:18:59 +02:00
Houtan Bastani 3597a41a4f preprocessor: cleanup writing JSON to standardout 2017-06-29 13:15:35 +02:00
Houtan Bastani 955fb4f003 preprocessor: print JSON deriv detail by default; use option to print less-detailed versions of dynamic/static models 2017-06-29 13:08:41 +02:00
Houtan Bastani c59b6ab035 preprocessor: write certain variables from M_ to JSON output 2017-06-28 17:11:24 +02:00
Sébastien Villemot 8b63e53d68 Add julia preprocessor to the clean rule. 2017-06-28 15:59:20 +02:00
Stéphane Adjemian (Charybdis) 507fad86a3 Cosmetic change.
A "lag"" key with a negative value should be interpreted as a lead (and not a
lag). Possible solutions are (1) Change the sign of the value, (2) Add a new
key "lead" and consider only positive values, and (3) Change the key name for
"shift" with negative values for lags and positive values for leads.

The commit implements the third choice.
2017-06-28 15:49:09 +02:00
Sébastien Villemot ec561138d4 Fix various typos (thanks lintian). 2017-06-28 15:06:54 +02:00
Houtan Bastani c66e000b5b preprocessor: remove warning on int/size_t comparison 2017-06-28 12:06:20 +02:00
Houtan Bastani 162675ecb8 preprocessor: write JSON output for original model when writing after transform pass 2017-06-28 12:04:04 +02:00
houtanb e6c5a8000b preprocessor: write original model in JSON output after computing pass 2017-06-23 14:20:48 +02:00
houtanb 95dda50de1 preprocessor: add tag information to cloned dynamic model 2017-06-23 14:19:57 +02:00
Stéphane Adjemian (Charybdis) 7af01dd0a2 Merge branch 'master' into json 2017-06-16 20:03:36 +02:00
Houtan Bastani 7153f19aab preprocessor: remove comparison warnings from compilation of ModelTree.cc 2017-06-14 23:49:10 +02:00
Houtan Bastani 6255858d21 preprocessor: fix bug: check whether second string in pair is empty. closes #1469 2017-06-14 23:40:30 +02:00
Stéphane Adjemian (Charybdis) 51feda7d02 Fixed code indentation. 2017-06-14 07:01:31 +02:00
Johannes Pfeifer 2670ca8db0 Get rid of unused and superseded options_.colormap and make sure options_.plot_shock_decomp.colormap is set 2017-05-23 13:20:47 +02:00
Stéphane Adjemian (Charybdis) 2be5a18c8a Merge branch 'prepare-4.5' 2017-05-19 16:33:12 +02:00
Stéphane Adjemian (Charybdis) 67482f4b7b Fixed copyright notices. 2017-05-18 18:36:38 +02:00
Houtan Bastani 5e1cc8d8e5 preprocessor: clean up initval output 2017-05-18 18:02:22 +02:00
Stéphane Adjemian (Charybdis) d2b7503e1c Fixed indentation of c/h/cc/hh files. 2017-05-16 16:30:27 +02:00
Stéphane Adjemian (Charybdis) 031a798a96 Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Stéphane Adjemian d72cadeed7 Merge pull request #1441 from JohannesPfeifer/ksstat
Remove redundant ksstat option
2017-04-29 18:00:25 +02:00