Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returns empty equilibrium #171

Open
B0RIS15 opened this issue Dec 3, 2021 · 0 comments
Open

Returns empty equilibrium #171

B0RIS15 opened this issue Dec 3, 2021 · 0 comments

Comments

@B0RIS15
Copy link

B0RIS15 commented Dec 3, 2021

Hi!
I try to find equilibrium in 19x2 matrix, but an empty array with equilibrium is returned to me.
Here is my code

game = nash.Game(Player1, Player2)  
try:   
    equlibrium = list(game.support_enumeration())[0] 
except IndexError: 
    try: 
        equlibrium = list(game.support_enumeration(non_degenerate=True))[0] 
    except: 
        equlibrium = list(game.support_enumeration(non_degenerate=True))
print("equlibrium", equlibrium) 
print("Player1 - ", numEqulibriumPlayer1, "Player2 - ", numEqulibriumPlayer2)

player matrices -

Player1 matrix - [[    0.  2009.]
 [20457.  1979.]
 [20372.  1979.]
 [19824.  1977.]
 [13133.  1978.]
 [ 6695.  1976.]
 [    0.  1979.]
 [    0.  1976.]
 [    0.  1975.]
 [    0.  1996.]
 [20856.  1980.]
 [21075.  1979.]
 [21051.  1981.]
 [20905.  1978.]
 [20942.  1982.]
 [21042.  1984.]
 [20939.  1990.]
 [20974.  1965.]
 [21056.  1976.]]
Player2 matrix - [[     0.  -2009.]
 [-21093.  -2050.]
 [-21267.  -2297.]
 [-21159.  -2796.]
 [-14600.  -3681.]
 [ -7904.  -5167.]
 [     0.  -7723.]
 [     0. -12386.]
 [     0. -22324.]
 [     0. -54005.]
 [-20881.  -1994.]
 [-21175.  -2039.]
 [-21282.  -2124.]
 [-21337.  -2244.]
 [-21652.  -2426.]
 [-22107.  -2669.]
 [-22470.  -2998.]
 [-23124.  -3368.]
 [-23962.  -3941.]]

Output -

equlibrium []  
Player1 -  [] Player2 -  []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant