plotcoreset {TUGLab} | R Documentation |
Plot core set
Description
Given a game with two, three or four players, this function plots its core set and set of imputations.
Usage
plotcoreset(
v,
binary = FALSE,
imputations = TRUE,
projected = FALSE,
solutions = NULL,
allocations = NULL,
color = "blue"
)
Arguments
v |
A characteristic function, as a vector. The game represented by |
binary |
A logical value. By default, |
imputations |
A logical value. By default, |
projected |
A logical value. By default, |
solutions |
Optional. A character vector containing a solution or a series of solutions to be added to the plot. Valid solutions:
|
allocations |
Optional. A matrix containing an allocation or a series of allocations to be added to the plot. The matrix should have as many columns as players in |
color |
The color in which the core set is to be drawn. By default, |
Details
The core of a game v\in G^N
is the set of all its stable imputations:
C(v)=\{x\in\mathbb{R}^n : x(N)=v(N), x(S)\ge v(S)\ \forall S \in 2^N\},
where x(S)=\sum_{i\in S} x_i
.
Value
A core set plot with the specified features.
See Also
Examples
v1 <- claimsgame(E=8,d=c(3,5,6))
plotcoreset(v1,solutions=c("nucleolus","shapleyvalue"))
v2 <- c(0,0,0,0,0,0,0,0,1,4,1,3,6,8,10)
plotcoreset(v2,solutions=c("corecenter","nucleoluspc"))