-
-6. Fix the math domain errors that sometimes pop up:
-
- ERROR: test_scaling_icecream (test.symmetric_linear_game_test
- .SymmetricLinearGameTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/mjo/src/dunshire/test/symmetric_linear_game_test.py",
- line 336, in test_scaling_icecream
- self.assert_scaling_works(L, K, e1, e2)
- File "/home/mjo/src/dunshire/test/symmetric_linear_game_test.py",
- line 317, in assert_scaling_works
- value2 = game2.solution().game_value()
- File "/home/mjo/src/dunshire/dunshire/games.py", line 428, in solution
- soln_dict = solvers.conelp(c, G, h, C.cvxopt_dims(), A, b)
- File "/usr/lib64/python3.4/site-packages/cvxopt/coneprog.py", line 1395,
- in conelp
- misc.update_scaling(W, lmbda, ds, dz)
- File "/usr/lib64/python3.4/site-packages/cvxopt/misc.py", line 510,
- in update_scaling
- ln = jnrm2(lmbda, n = m, offset = ind)
- File "/usr/lib64/python3.4/site-packages/cvxopt/misc.py", line 856, in jnrm2
- return math.sqrt(x[offset] - a) * math.sqrt(x[offset] + a)
- ValueError: math domain error
-
-
-7. Figure out why this happens, too:
-
- FAIL: test_scaling_icecream (test.symmetric_linear_game_test
- .SymmetricLinearGameTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/mjo/src/dunshire/test/symmetric_linear_game_test.py",
- line 336, in test_scaling_icecream
- self.assert_scaling_works(L, K, e1, e2)
- File "/home/mjo/src/dunshire/test/symmetric_linear_game_test.py",
- line 318, in assert_scaling_works
- self.assert_within_tol(alpha*value1, value2)
- File "/home/mjo/src/dunshire/test/symmetric_linear_game_test.py",
- line 254, in assert_within_tol
- self.assertTrue(abs(first - second) < options.ABS_TOL)
- AssertionError: False is not true
-
-
- FAIL: test_translation_orthant (test.symmetric_linear_game_test
- SymmetricLinearGameTest)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/mjo/src/dunshire/test/symmetric_linear_game_test.py",
- line 374, in test_translation_orthant
- self.assert_translation_works(L, K, e1, e2)
- File "/home/mjo/src/dunshire/test/symmetric_linear_game_test.py",
- line 366, in assert_translation_works
- self.assert_within_tol(value2, inner_product(M*x_bar, y_bar))
- File "/home/mjo/src/dunshire/test/symmetric_linear_game_test.py",
- line 254, in assert_within_tol
- self.assertTrue(abs(first - second) < options.ABS_TOL)
- AssertionError: False is not true