Skip to content
Snippets Groups Projects
Commit 3e84e333 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Changed verbosity options (fast deterministic simulations). Default is options_.verbosity==1.

parent b8bb1acc
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ function time_series = extended_path(initial_conditions,sample_size) ...@@ -33,6 +33,7 @@ function time_series = extended_path(initial_conditions,sample_size)
global M_ options_ oo_ global M_ options_ oo_
debug = 0; debug = 0;
options_.verbosity = options_.ep.verbosity;
verbosity = options_.ep.verbosity+debug; verbosity = options_.ep.verbosity+debug;
% Test if bytecode and block options are used (these options are mandatory) % Test if bytecode and block options are used (these options are mandatory)
......
...@@ -35,6 +35,8 @@ bayestopt_ = []; ...@@ -35,6 +35,8 @@ bayestopt_ = [];
options_.console_mode = 0; options_.console_mode = 0;
options_.verbosity = 1;
options_.terminal_condition = 0; options_.terminal_condition = 0;
options_.rplottype = 0; options_.rplottype = 0;
options_.smpl = 0; options_.smpl = 0;
...@@ -109,7 +111,7 @@ options_.SpectralDensity = 0; ...@@ -109,7 +111,7 @@ options_.SpectralDensity = 0;
% Extended path options % Extended path options
% %
% Set verbose mode % Set verbose mode
options_.ep.verbosity = 1; options_.ep.verbosity = 0;
% Initialization of the perfect foresight equilibrium paths % Initialization of the perfect foresight equilibrium paths
% * init=0, previous solution is used. % * init=0, previous solution is used.
% * init=1, a path generated with the first order reduced form is used. % * init=1, a path generated with the first order reduced form is used.
......
...@@ -286,8 +286,7 @@ main(int nrhs, const char *prhs[]) ...@@ -286,8 +286,7 @@ main(int nrhs, const char *prhs[])
nb_row_xd = row_x; nb_row_xd = row_x;
} }
} }
mxArray *ep = mxGetFieldByNumber(options_, 0, mxGetFieldNumber(options_, "ep")); int verbose= int(*mxGetPr((mxGetFieldByNumber(options_, 0, mxGetFieldNumber(options_, "verbosity")))));
int verbose= int(*mxGetPr((mxGetFieldByNumber(ep, 0, mxGetFieldNumber(ep, "verbosity")))));
if (verbose) if (verbose)
print_it = true; print_it = true;
int maxit_ = int (floor(*(mxGetPr(mxGetFieldByNumber(options_, 0, mxGetFieldNumber(options_, "maxit_")))))); int maxit_ = int (floor(*(mxGetPr(mxGetFieldByNumber(options_, 0, mxGetFieldNumber(options_, "maxit_"))))));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment