pygambit.nash.enumpure_solve#

pygambit.nash.enumpure_solve(game: Game, nash_callback: Callable[[MixedStrategyProfileRational], None] | None = None) EnumPureResult#

Compute all pure-strategy Nash equilibria of game.

Changed in version 16.5.0:

use_strategic parameter removed. The old behavior in the case

of use_strategic=False is now available as enumpure_agent_solve.

Changed in version 17.0.0: Added nash_callback parameter.

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

  • nash_callback (Callable[[MixedStrategyProfileRational], None], optional) – If specified, called with each equilibrium as it is found, before the method continues searching for any further equilibria.

Returns:

res – The result represented as an EnumPureResult object.

Return type:

EnumPureResult