pygambit.gambit.MixedBehaviorProfile.action_value#

MixedBehaviorProfile.action_value(action: Action | str) float | Rational | None#

Returns the expected payoff to the player of playing an action conditional on reaching its information set, if all players play according to the profile.

If the information set is not reachable, the expected payoff is not well-defined. In this case, the function returns None.

Parameters:

action (Action or str) – The action to get the payoff for. If a string is passed, the action is determined by finding the action with that label, if any.

Raises:
  • MismatchError – If action is an Action from a different game.

  • KeyError – If action is a string and no action in the game has that label.

  • ValueError – If action resolves to an action that belongs to the chance player