Description Usage Arguments Value Author(s) References Examples
View source: R/getGainingCoalitions.R
The function getGainingCoalitions identifies all
gaining coalitions.
Coalition S
is a gaining coalition if there holds: v(S) > 0
1 |
v |
Numeric vector of length 2^n - 1 representing the values of the coalitions of a TU game with n players |
A data frame containing all gaining coalitions.
Jochen Staudacher jochen.staudacher@hs-kempten.de
Bertini C. and Stach I. (2015) "On Public Values and Power Indices", Decision Making in Manufacturing and Services 9(1), pp. 9–25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(CoopGame)
getGainingCoalitions(v=c(0,0,0,2,0,2,3))
library(CoopGame)
v <- c(1,2,3,4,0,0,11)
getGainingCoalitions(v)
# Output:
# V1 V2 V3 cVal
# 1 1 0 0 1
# 2 0 1 0 2
# 3 0 0 1 3
# 4 1 1 0 4
# 7 1 1 1 11
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.