get_payoff
returns the vector of payoffs corresponding to
a specified pair of strategies or a set of action profiles.
get_payoff(game, actions, cons1, cons2, cons_common)
A game defined by one of normal_form()
, seq_form()
,
or extensive_form()
.
A list of strategies or actions to which the payoffs correspond. Each strategy or action must be defined in the game.
A named list of parameters contained in
game$payoff$payoffs1
that should be treated as constants, if any.
A named list of parameters contained in
game$payoff$payoffs2
that should be treated as constants, if any.
A named list of parameters contained in
game$payoff$payoffs1
and game$payoff$payoffs2
that should
be treated as constants, if any. If cons1
and cons2
are
exactly same, you can specify cons_common
instead of specifying
both cons1
and cons2
.
A vector of payoffs.