From 20ae7069cf75ad54e7eb45f2680f07aef55826d4 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Thu, 16 Jun 2016 20:49:02 +0200 Subject: [PATCH 1/2] Document new OSR fields of M_ --- doc/dynare.texi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/doc/dynare.texi b/doc/dynare.texi index 220c8683e..b3f50582c 100644 --- a/doc/dynare.texi +++ b/doc/dynare.texi @@ -7564,6 +7564,32 @@ at the optimum, stored in fields of the form @code{oo_.osr.optim_params.@var{PARAMETER_NAME}}. @end defvr +@defvr {MATLAB/Octave variable} M_.osr.param_names +After an execution of the @code{osr} command, this cell contains the names of the parameters +@end defvr + +@defvr {MATLAB/Octave variable} M_.osr.param_indices +After an execution of the @code{osr} command, this vector contains the indices of the OSR parameters +in @var{M_.params}. +@end defvr + +@defvr {MATLAB/Octave variable} M_.osr.param_bounds +After an execution of the @code{osr} command, this two by number of OSR parameters +matrix contains the lower and upper bounds of the parameters in the first and second +column, respectively. +@end defvr + +@defvr {MATLAB/Octave variable} M_.osr.variable_weights +After an execution of the @code{osr} command, this sparse matrix +contains the weighting matrix associated with the variables in the +objective function. +@end defvr + +@defvr {MATLAB/Octave variable} M_.osr.variable_indices +After an execution of the @code{osr} command, this vector contains the +indices of the variables entering the objective function in @code{M_.endo_names}. +@end defvr + @anchor{Ramsey} @deffn Command ramsey_model (@var{OPTIONS}@dots{}); From 00dcc1b543f3dba2a72465ae08066c99f418cfe7 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Thu, 16 Jun 2016 20:50:11 +0200 Subject: [PATCH 2/2] Clarify Dynare behavior of using clear all for Octave and Matlab Closes #1232 --- doc/dynare.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/dynare.texi b/doc/dynare.texi index b3f50582c..f99f0ce6b 100644 --- a/doc/dynare.texi +++ b/doc/dynare.texi @@ -743,7 +743,7 @@ clear the globals and functions. @item onlyclearglobals By default, @code{dynare} will issue a @code{clear all} command to -MATLAB or Octave, thereby deleting all workspace variables; this +MATLAB versions before 2015b and to Octave, thereby deleting all workspace variables; this option instructs @code{dynare} to clear only the global variables (@i{i.e.} @code{M_}, @code{options_}, @code{oo_}, @code{estim_params_}, @code{bayestopt_}, and @code{dataset_}), leaving