pygambit.nash.enummixed_solve#
- pygambit.nash.enummixed_solve(game: Game, rational: bool = True, external: bool = False, use_lrs: bool = False) List[MixedStrategyProfile]#
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.
external (bool, default False) – Call the external command-line solver instead of the internally-linked implementation. Requires the command-line solvers to be installed somewhere accessible in the system path.
use_lrs (bool, default False) – If True, use the implementation based on
lrslib. This is experimental.
- Returns:
The list of mixed strategy profiles computed.
- Return type:
List of mixed strategy profiles
- Raises:
RuntimeError – If game has more than two players.
