Description Usage Arguments Value Author(s) References Examples
View source: R/GamePropertySimpleGame.R
isSimpleGame checks if a TU game is a simple game.
A TU game is a simple game in the sense of the book by
Peleg and Sudhoelter (2007), p. 16, if and only if the
game is monotonic and the values of all coalitions are
either 0
or 1
.
1 | isSimpleGame(v)
|
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 essential, else FALSE
.
Jochen Staudacher jochen.staudacher@hs-kempten.de
Peleg B. and Sudhoelter P. (2007) Theory of cooperative games, 2nd Edition, Springer, p. 16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | library(CoopGame)
isSimpleGame(c(0,0,0,1,0,1,1))
#Example of a simple game
library(CoopGame)
v1<-c(0,0,0,0,1,1,1)
isSimpleGame(v1)
#Example of a game which not simple
library(CoopGame)
v2<-c(0,0,0,0,1,1,2)
isSimpleGame(v2)
#Another example of a game which not simple
#according to our definition
library(CoopGame)
v3<-c(1,0,0,0,1,1,1)
isSimpleGame(v3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.