Description Usage Arguments Value Author(s) References Examples
View source: R/GamePropertyConstantSum.R
Checks if a TU game with n players is constant-sum.
In a constant-sum game for any coalition
S
the sums of the values of the coalition
S
and its complement equal the value of
the grand coalition N
.
1 |
v |
Numeric vector of length 2^n - 1 representing the values of the coalitions of a TU game with n players |
TRUE
if the game is constant-sum, else FALSE
.
Jochen Staudacher jochen.staudacher@hs-kempten.de
Peleg B. and Sudhoelter P. (2007) Theory of cooperative games, 2nd Edition, Springer, p. 11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(CoopGame)
v=c(0,0,0,2,2,2,2)
isConstantSumGame(v)
#Example of a game that is not constant-sum
library(CoopGame)
v=c(0,0,0,40,30,130,100)
isConstantSumGame(v)
#Another example of a constant-sum game
library(CoopGame)
v=c(1,1,1,2, 2,2,2,2,2,2, 2,3,3,3, 4)
isConstantSumGame(v)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.