From 1c30a1e17d501f42a86f2d0a6c9e470de844137f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?D=C3=B3ra=20Kocsis?= <dora@dynare.org>
Date: Thu, 5 Mar 2020 16:22:23 +0100
Subject: [PATCH] fix bug in estimation input: lyapunov

---
 src/+gui_auxiliary/set_command_option.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/+gui_auxiliary/set_command_option.m b/src/+gui_auxiliary/set_command_option.m
index fdb4d3f..42009e7 100644
--- a/src/+gui_auxiliary/set_command_option.m
+++ b/src/+gui_auxiliary/set_command_option.m
@@ -48,11 +48,11 @@ try
             options_.lyapunov_db = 0;
             options_.lyapunov_srs = 0;
 
-            if strcmp(value, 'fixed_point')
+            if value == 3 % fixed_point
                 options_.lyapunov_fp = 1;
-            elseif strcmp(value, 'doubling')
+            elseif value == 4 %doubling
                 options_.lyapunov_db = 1;
-            elseif strcmp(value, 'square_root_solver')
+            elseif value == 5 %square_root_solver
                 options_.lyapunov_srs = 1;
             end
 
-- 
GitLab