From 8edb7959add84dfd1e3b201faaa4c5a3c1ae7e1b Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Sat, 23 Nov 2024 01:07:52 +0100
Subject: [PATCH] dynare_minimize_objective.m: correct error message for
 missing toolboxes

---
 matlab/optimization/dynare_minimize_objective.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/optimization/dynare_minimize_objective.m b/matlab/optimization/dynare_minimize_objective.m
index 5466d2330d..990f9b146e 100644
--- a/matlab/optimization/dynare_minimize_objective.m
+++ b/matlab/optimization/dynare_minimize_objective.m
@@ -631,9 +631,9 @@ switch minimizer_algorithm
     end
   case 102
     if isoctave
-        error('Optimization algorithm 2 is not available under Octave')
+        error('Optimization algorithm 102 is not available under Octave')
     elseif ~user_has_matlab_license('GADS_Toolbox')
-        error('Optimization algorithm 2 requires the Global Optimization Toolbox')
+        error('Optimization algorithm 102 requires the Global Optimization Toolbox')
     end
     % Set default optimization options for simulannealbnd.
     if ~isoctave
-- 
GitLab