getGainingCoalitions: Compute gaining coalitions of a TU game

Description Usage Arguments Value Author(s) References Examples

View source: R/getGainingCoalitions.R

Description

The function getGainingCoalitions identifies all gaining coalitions. Coalition S is a gaining coalition if there holds: v(S) > 0

Usage

1

Arguments

v

Numeric vector of length 2^n - 1 representing the values of the coalitions of a TU game with n players

Value

A data frame containing all gaining coalitions.

Author(s)

Jochen Staudacher jochen.staudacher@hs-kempten.de

References

Bertini C. and Stach I. (2015) "On Public Values and Power Indices", Decision Making in Manufacturing and Services 9(1), pp. 9–25

Examples

 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

CoopGame documentation built on Aug. 24, 2021, 1:07 a.m.