Testsuite / External functions: also test coefficients of 2nd order policy function

time-shift
Sébastien Villemot 2020-07-10 18:25:23 +02:00
parent acdca03e43
commit 51278b2f90
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
8 changed files with 96 additions and 0 deletions

View File

@ -52,6 +52,18 @@ end
if max(max(abs(L.oo_.dr.ghx - oo_.dr.ghx))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxu - oo_.dr.ghxu))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxx - oo_.dr.ghxx))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghuu - oo_.dr.ghuu))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghs2 - oo_.dr.ghs2))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.var - oo_.var))) > 1e-12
error('Failure in external function')
end

View File

@ -52,6 +52,18 @@ end
if max(max(abs(L.oo_.dr.ghx - oo_.dr.ghx))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxu - oo_.dr.ghxu))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxx - oo_.dr.ghxx))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghuu - oo_.dr.ghuu))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghs2 - oo_.dr.ghs2))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.var - oo_.var))) > 1e-12
error('Failure in external function')
end

View File

@ -54,6 +54,18 @@ end
if max(max(abs(L.oo_.dr.ghx - oo_.dr.ghx))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxu - oo_.dr.ghxu))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxx - oo_.dr.ghxx))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghuu - oo_.dr.ghuu))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghs2 - oo_.dr.ghs2))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.var - oo_.var))) > 1e-12
error('Failure in external function')
end

View File

@ -54,6 +54,18 @@ end
if max(max(abs(L.oo_.dr.ghx - oo_.dr.ghx))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxu - oo_.dr.ghxu))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxx - oo_.dr.ghxx))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghuu - oo_.dr.ghuu))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghs2 - oo_.dr.ghs2))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.var - oo_.var))) > 1e-12
error('Failure in external function')
end

View File

@ -52,6 +52,18 @@ end
if max(max(abs(L.oo_.dr.ghx - oo_.dr.ghx))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxu - oo_.dr.ghxu))) > 1e-4
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxx - oo_.dr.ghxx))) > 1e-3
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghuu - oo_.dr.ghuu))) > 1e-5
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghs2 - oo_.dr.ghs2))) > 1e-9
error('Failure in external function')
end
if max(max(abs(L.oo_.var - oo_.var))) > 1e-12
error('Failure in external function')
end

View File

@ -52,6 +52,18 @@ end
if max(max(abs(L.oo_.dr.ghx - oo_.dr.ghx))) > 1e-12
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxu - oo_.dr.ghxu))) > 1e-4
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxx - oo_.dr.ghxx))) > 1e-3
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghuu - oo_.dr.ghuu))) > 1e-5
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghs2 - oo_.dr.ghs2))) > 1e-9
error('Failure in external function')
end
if max(max(abs(L.oo_.var - oo_.var))) > 1e-12
error('Failure in external function')
end

View File

@ -52,6 +52,18 @@ end
if max(max(abs(L.oo_.dr.ghx - oo_.dr.ghx))) > 1e-9
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxu - oo_.dr.ghxu))) > 1e-4
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxx - oo_.dr.ghxx))) > 1e-3
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghuu - oo_.dr.ghuu))) > 1e-5
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghs2 - oo_.dr.ghs2))) > 1e-9
error('Failure in external function')
end
if max(max(abs(L.oo_.var - oo_.var))) > 1e-12
error('Failure in external function')
end

View File

@ -52,6 +52,18 @@ end
if max(max(abs(L.oo_.dr.ghx - oo_.dr.ghx))) > 1e-9
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxu - oo_.dr.ghxu))) > 1e-4
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghxx - oo_.dr.ghxx))) > 1e-3
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghuu - oo_.dr.ghuu))) > 1e-5
error('Failure in external function')
end
if max(max(abs(L.oo_.dr.ghs2 - oo_.dr.ghs2))) > 1e-9
error('Failure in external function')
end
if max(max(abs(L.oo_.var - oo_.var))) > 1e-12
error('Failure in external function')
end