Skip to content
Snippets Groups Projects
Commit 51e05834 authored by Dóra Kocsis's avatar Dóra Kocsis
Browse files

fix drop-down option inputs in stoch_simul: sylvester, dr

parent 3c269cf6
No related branches found
No related tags found
No related merge requests found
......@@ -225,7 +225,7 @@ dynare_gui_.estimation.solver{num,4} = 'Use the Anderson-Moore Algorithm (AIM) t
num = num+1;
dynare_gui_.estimation.solver{num,1} = 'sylvester';
dynare_gui_.estimation.solver{num,2} = 'default';
dynare_gui_.estimation.solver{num,3} = {'','default', 'fixed_point'}; % special
dynare_gui_.estimation.solver{num,3} = {'default', 'fixed_point'}; % special
dynare_gui_.estimation.solver{num,4} = 'Determines the algorithm used to solve the Sylvester equation for block decomposed model. Possible values for OPTION are: default and fixed_point. Default value is default.';
num = num+1;
......
......@@ -57,18 +57,19 @@ try
end
case 'sylvester'
if value == 2 %default
options_.sylvester_fp = 0;
elseif value == 3 %fixed_point
options_.sylvester_fp = 0;
if value == 2 %fixed_point
options_.sylvester_fp = 1;
end
case 'dr'
options_.dr_cycle_reduction = 0;
options_.dr_logarithmic_reduction = 0;
if strcmp(value, 'cycle_reduction')
if value == 2
options_.dr_cycle_reduction = 1;
elseif strcmp(value, 'logarithmic_reduction')
elseif value == 3
options_.dr_logarithmic_reduction = 1;
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment