Chadwick Gambit: Software Tools for Game Theory

pygambit.nash.ipa_solve#

pygambit.nash.ipa_solve(perturbation: Game | MixedStrategyProfileDouble) NashComputationResult#

Compute Nash equilibria of a game using iterated polymatrix approximation.

Parameters:

perturbation (Game or MixedStrategyProfileDouble) –

The perturbation vector to apply to the game. If a Game is passed, the perturbation vector is set to be 1 for the first strategy for each player and 0 for all other strategies.

Changed in version 16.2.0: Allow selection of the perturbation vector

Raises:

ValueError – If the perturbation vector does not have a unique maximizer for each player

Returns:

res – The result represented as a NashComputationResult object.

Return type:

NashComputationResult