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

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

parent 6d4452b2
Branches
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 ...@@ -225,7 +225,7 @@ dynare_gui_.estimation.solver{num,4} = 'Use the Anderson-Moore Algorithm (AIM) t
num = num+1; num = num+1;
dynare_gui_.estimation.solver{num,1} = 'sylvester'; dynare_gui_.estimation.solver{num,1} = 'sylvester';
dynare_gui_.estimation.solver{num,2} = 'default'; 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.'; 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; num = num+1;
......
...@@ -57,18 +57,19 @@ try ...@@ -57,18 +57,19 @@ try
end end
case 'sylvester' case 'sylvester'
if value == 2 %default options_.sylvester_fp = 0;
options_.sylvester_fp = 0;
elseif value == 3 %fixed_point if value == 2 %fixed_point
options_.sylvester_fp = 1; options_.sylvester_fp = 1;
end end
case 'dr' case 'dr'
options_.dr_cycle_reduction = 0; options_.dr_cycle_reduction = 0;
options_.dr_logarithmic_reduction = 0; options_.dr_logarithmic_reduction = 0;
if strcmp(value, 'cycle_reduction') if value == 2
options_.dr_cycle_reduction = 1; options_.dr_cycle_reduction = 1;
elseif strcmp(value, 'logarithmic_reduction') elseif value == 3
options_.dr_logarithmic_reduction = 1; options_.dr_logarithmic_reduction = 1;
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment