Chadwick Gambit: Software Tools for Game Theory

pygambit.nash.enummixed_solve#

pygambit.nash.enummixed_solve(game: Game, rational: bool = True, use_lrs: bool = False) NashComputationResult#

Compute all mixed-strategy Nash equilibria of a two-player game using the strategic representation.

Parameters:
  • game (Game) – The game to compute equilibria in.

  • rational (bool, default True) – Compute using rational numbers. If False, using floating-point arithmetic. Using rationals is more precise, but slower.

  • use_lrs (bool, default False) – If True, use the implementation based on lrslib. This is experimental.

Returns:

res – The result represented as a NashComputationResult object.

Return type:

NashComputationResult

Raises:

RuntimeError – If game has more than two players.