From bde2f1977c10263ff211f8d6f3bd5f4e92a30f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Mon, 13 Jan 2020 16:27:47 +0100 Subject: [PATCH] MATLAB compatibility fix: skip mode_compute=3 test under R2009b In this version, fminunc fails due to Inf value. --- tests/optimizers/fs2000_3.mod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/optimizers/fs2000_3.mod b/tests/optimizers/fs2000_3.mod index 5efc98d2a..09d2c59a5 100644 --- a/tests/optimizers/fs2000_3.mod +++ b/tests/optimizers/fs2000_3.mod @@ -1,5 +1,7 @@ @#include "fs2000.common.inc" -if exist('fminunc','file') +% Skip the test under R2009b, because fminunc fails due to Inf value. +% It remains to be determined in which version it started to work. +if exist('fminunc','file') && (isoctave || ~matlab_ver_less_than('7.10')) estimation(mode_compute=3,order=1, datafile='../fs2000/fsdat_simul', nobs=192, mh_replic=0); end