From: Michael Orlitzky Date: Tue, 1 Nov 2016 23:09:39 +0000 (-0400) Subject: Ensure that e1,e2 are far enough inside K in random_orthant_game(). X-Git-Tag: 0.1.0~80 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=2399e11170c25f5af276f8c9c3140bbc1f579474;p=dunshire.git Ensure that e1,e2 are far enough inside K in random_orthant_game(). --- diff --git a/test/randomgen.py b/test/randomgen.py index 9510c04..97dd0b9 100644 --- a/test/randomgen.py +++ b/test/randomgen.py @@ -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)