Skip to content

[Bug]: enumpoly hanging on 6x6 bimatrix game #1055

Closed

Description

@rahulsavani

Where did you find this bug?

PyGambit

What operating system are you using?

macOS

What version of Gambit are you using?

Development version

What happened?

The bug is shown in the following example code where we load a 6x6 bimatrix game with 75 equilibria from the catalog.

Using enummixed_solve we find all 75 equilibria, but in the below code with enumpoly_solve, after creating an EFG version of the bimatrix game we then struggle to find the:

  • 54 equilibria with use_strategic=True (but finding 53 is fine);
  • 1 equilibrium with with use_strategic=False.

We find the same with the "small payoff" version of this game (slug: "6x6_game_with_75_eq_small_payoffs").

import pygambit as gbt
from tests.games import create_efg_corresponding_to_bimatrix_game  

slug = "journals/dcg/vonstengel1999/6x6_game_with_75_eq"
A, B = gbt.catalog.load(slug).to_arrays()
g = create_efg_corresponding_to_bimatrix_game(A, B, "")

#######################
# use_strategic is True
#######################

# Runs in ~ 10 seconds:
print(gbt.nash.enumpoly_solve(g, stop_after=53, use_strategic=True))

# Hangs:
# print(gbt.nash.enumpoly_solve(g, stop_after=54, use_strategic=True))

########################
# use_strategic is False
########################

# Hangs:
# print(gbt.nash.enumpoly_solve(g, stop_after=1, use_strategic=False))

Activity

  1. added this to the gambit-17.0.0.alpha.2 milestone on Aug 19, 2026
  2. self-assigned this
    on Aug 19, 2026
  3. added
    c++Items which involve writing in C++
    nashItems which involve Nash equilibrium computation methods
    on Aug 19, 2026
  4. added 3 commits that reference this issue on Aug 19, 2026
    5b83c92
    0ee9778
    8727978
  5. added a commit that references this issue on Aug 20, 2026
    c0664ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugc++Items which involve writing in C++nashItems which involve Nash equilibrium computation methods

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions