Testsuite: increase numerical tolerance for minimal_state_space_system/sw_minimal.mod

This is necessary for MATLAB R2014a on some runners.
time-shift
Sébastien Villemot 2021-01-27 17:59:22 +01:00
parent 6e6bc3f6c9
commit 25d19fef96
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ Sigmay_min = minSS.C*Sigmax_min*minSS.C' + minSS.D*M_.Sigma_e*minSS.D';
([Sigmay_full(:) - Sigmay_min(:)]')
sqrt(([diag(Sigmay_full), diag(Sigmay_min)]'))
dx = norm( Sigmay_full - Sigmay_min, Inf);
if dx > 2e-8
if dx > 3e-8
error(sprintf('something wrong with minimal state space computations, as numerical error is %d',dx))
else
fprintf('numerical error for moments computed from minimal state system is %d\n',dx)