X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dunshire.git;a=blobdiff_plain;f=test%2Fsymmetric_linear_game_test.py;h=b9c29fe68056f52da980443809e881ce6faa28ad;hp=067aaa15e6196e6120b9f613f2982847f08e9c71;hb=0b6e486f52b6c42f78ba408543be0cc4b66fada7;hpb=7b962e733fee3ca6f7586677d460a1a37372a6d8 diff --git a/test/symmetric_linear_game_test.py b/test/symmetric_linear_game_test.py index 067aaa1..b9c29fe 100644 --- a/test/symmetric_linear_game_test.py +++ b/test/symmetric_linear_game_test.py @@ -141,8 +141,8 @@ class SymmetricLinearGameTest(TestCase): # pylint: disable=R0904 soln2 = H.solution() value1 = soln1.game_value() value2 = soln2.game_value() - modifier1 = G.epsilon_scale(soln1) - modifier2 = H.epsilon_scale(soln2) + modifier1 = G.tolerance_scale(soln1) + modifier2 = H.tolerance_scale(soln2) modifier = max(modifier1, modifier2) self.assert_within_tol(alpha*value1, value2, modifier) @@ -182,7 +182,7 @@ class SymmetricLinearGameTest(TestCase): # pylint: disable=R0904 (alpha, H) = random_translation(G) value2 = H.solution().game_value() - modifier = G.epsilon_scale(soln1) + modifier = G.tolerance_scale(soln1) self.assert_within_tol(value1 + alpha, value2, modifier) # Make sure the same optimal pair works. @@ -225,7 +225,7 @@ class SymmetricLinearGameTest(TestCase): # pylint: disable=R0904 y_bar = soln1.player2_optimal() soln2 = H.solution() - mod = G.epsilon_scale(soln1) + mod = G.tolerance_scale(soln1) self.assert_within_tol(-soln1.game_value(), soln2.game_value(), mod) # Make sure the switched optimal pair works. Since x_bar and @@ -265,7 +265,7 @@ class SymmetricLinearGameTest(TestCase): # pylint: disable=R0904 ip1 = inner_product(y_bar, G.L()*x_bar - value*G.e1()) ip2 = inner_product(value*G.e2() - G.L().trans()*y_bar, x_bar) - modifier = G.epsilon_scale(soln) + modifier = G.tolerance_scale(soln) self.assert_within_tol(ip1, 0, modifier) self.assert_within_tol(ip2, 0, modifier) @@ -324,7 +324,7 @@ class SymmetricLinearGameTest(TestCase): # pylint: disable=R0904 self.assertTrue(negative_stable) dualsoln = G.dual().solution() - mod = G.epsilon_scale(soln) + mod = G.tolerance_scale(soln) self.assert_within_tol(dualsoln.game_value(), soln.game_value(), mod)