Description Usage Arguments Details Value Author(s) See Also Examples
Given a linear production game, the
plotCoreSet
function plots the imputation Set, Core Set and the most common
solutions (Nucleolus, Shapley Value and allocations
of the Owen Set).
1 | plotCoreSet(c, A, B)
|
c |
vector containing the benefits of the products. |
A |
production matrix. |
B |
matrix containing the amount of resources of the several players where each row is one player. |
In most cases the Owen Set consists of a single allocation, but in some cases there are infinities. In the case that there are infinite allocations, if the problem has two dimensions, they will be given by a line, which we will represent graphically. If the problem has more than two dimensions, an allocation of all possible ones will be represented.
plotCoreSet
returns a ggplot
object with the imputation set
of the game, the core and the most common solutions.
D. Prieto
1 2 3 4 5 6 7 8 9 10 | # Vector of benefits
c <- c(68, 52)
# Production matrix
A <- matrix(c(4, 5, 6, 2), ncol = 2, byrow = TRUE)
# Matrix of resources. Each row is the vector of resources of each player
B <- matrix(c(4, 6, 60, 33, 39, 0), ncol = 3, byrow = TRUE)
# Solution of the associated linear production game
plotCoreSet(c, A, B)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.