X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=test%2Frandomgen.py;h=9fee2f749cbcf8037f2c64d41fe42e17731381a4;hb=10dfe7d7edb69701dd8f4f955f3f325706d77e47;hp=9510c04767150b967283f62f72d7e7a88f112186;hpb=79d8219c4ac2ce7972247f3e7690e776295fabba;p=dunshire.git diff --git a/test/randomgen.py b/test/randomgen.py index 9510c04..9fee2f7 100644 --- a/test/randomgen.py +++ b/test/randomgen.py @@ -9,7 +9,7 @@ from dunshire.cones import NonnegativeOrthant, IceCream from dunshire.games import SymmetricLinearGame from dunshire.matrices import (append_col, append_row, identity) -MAX_COND = 250 +MAX_COND = 100 """ The maximum condition number of a randomly-generated game. """ @@ -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)