From c14e402139e4e167b50c5655761147d84c0bff6b Mon Sep 17 00:00:00 2001 From: Michel Juillard <michel.juillard@mjui.fr> Date: Thu, 8 May 2014 12:23:09 +0200 Subject: [PATCH] fixed expectation model test cases. They had a crazy steady state revealed by the now more accurate nonlinear solver. (cherry picked from commit 8bf484a140f8a1d31f474c93e4201740444dcc5c) --- tests/expectations/expectation.mod | 2 +- tests/expectations/expectation_nested.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/expectations/expectation.mod b/tests/expectations/expectation.mod index 972521456..3e5ba3c95 100644 --- a/tests/expectations/expectation.mod +++ b/tests/expectations/expectation.mod @@ -15,7 +15,7 @@ theta = 2.95; phi = 0.1; model; -c*theta*h^(1+psi)=expectation(1)((1-alpha)*y)+expectation(-2)((1-alpha)*y); +c*theta*h^(1+psi)=(expectation(1)((1-alpha)*y)+expectation(-2)((1-alpha)*y))/2; k = beta*(((exp(b)*c)/(exp(b(+1))*c(+1))) *(exp(b(+1))*alpha*y(+1)+(1-delta)*k)); y = exp(a)*(k(-1)^alpha)*(h^(1-alpha)); diff --git a/tests/expectations/expectation_nested.mod b/tests/expectations/expectation_nested.mod index 44cf44b03..a20b09eab 100644 --- a/tests/expectations/expectation_nested.mod +++ b/tests/expectations/expectation_nested.mod @@ -15,7 +15,7 @@ theta = 2.95; phi = 0.1; model; -c*theta*h^(1+psi)=expectation(1)(((1-alpha)*y)+expectation(3)((1-alpha)*y)); +c*theta*h^(1+psi)=expectation(1)(((1-alpha)*y)+expectation(3)((1-alpha)*y))/2; k = beta*(((exp(b)*c)/(exp(b(+1))*c(+1))) *(exp(b(+1))*alpha*y(+1)+(1-delta)*k)); y = exp(a)*(k(-1)^alpha)*(h^(1-alpha)); -- GitLab