From 3e6a0ab4d098f992d3f97a8627eb091663112ede Mon Sep 17 00:00:00 2001 From: chase Date: Tue, 9 Sep 2014 09:42:33 -0400 Subject: [PATCH] TEST: Lower tolerance on the compute stationary matrices. --- quantecon/tests/test_lqcontrol.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quantecon/tests/test_lqcontrol.py b/quantecon/tests/test_lqcontrol.py index 36f1cf066..8d3cc1cf9 100644 --- a/quantecon/tests/test_lqcontrol.py +++ b/quantecon/tests/test_lqcontrol.py @@ -68,8 +68,8 @@ def test_mat_sequences(self): x_seq, u_seq, w_seq = lq_mat.compute_sequence(x0) - assert_allclose(np.sum(u_seq), .95 * np.sum(x0), rtol=1e-4) - assert_allclose(x_seq[:, -1], np.zeros_like(x0), rtol=1e-4) + assert_allclose(np.sum(u_seq), .95 * np.sum(x0), atol=1e-3) + assert_allclose(x_seq[:, -1], np.zeros_like(x0), atol=1e-3) def test_stationary_mat(self): @@ -83,8 +83,8 @@ def test_stationary_mat(self): val_func_lq = np.dot(x0, P).dot(x0) val_func_answer = x0[0]**2 - assert_allclose(f_answer, F, rtol=1e-4) - assert_allclose(val_func_lq, val_func_answer, rtol=1e-4) + assert_allclose(f_answer, F, atol=1e-3) + assert_allclose(val_func_lq, val_func_answer, atol=1e-3)