]> gitweb.michael.orlitzky.com - dunshire.git/commitdiff
Ensure that e1,e2 are far enough inside K in random_orthant_game().
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 1 Nov 2016 23:09:39 +0000 (19:09 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 1 Nov 2016 23:09:39 +0000 (19:09 -0400)
test/randomgen.py

index 9510c04767150b967283f62f72d7e7a88f112186..97dd0b93157a7b534c7cb4c6acb5de1740de661e 100644 (file)
@@ -323,8 +323,8 @@ def random_orthant_game():
     """
     ambient_dim = random_natural() + 1
     K = NonnegativeOrthant(ambient_dim)
-    e1 = [random_nn_scalar() for _ in range(K.dimension())]
-    e2 = [random_nn_scalar() for _ in range(K.dimension())]
+    e1 = [0.1 + random_nn_scalar() for _ in range(K.dimension())]
+    e2 = [0.1 + random_nn_scalar() for _ in range(K.dimension())]
     L = random_matrix(K.dimension())
     G = SymmetricLinearGame(L, K, e1, e2)