]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - test/symmetric_linear_game_test.py
Rename epsilon_scale() to tolerance_scale().
[dunshire.git] / test / symmetric_linear_game_test.py
index 067aaa15e6196e6120b9f613f2982847f08e9c71..b9c29fe68056f52da980443809e881ce6faa28ad 100644 (file)
@@ -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)