Learn R Programming

coopProductGame (version 2.0)

plotCoreSet: Plot Core Set for cooperative production linear games.

Description

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).

Usage

plotCoreSet(c, A, B)

Arguments

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.

Value

plotCoreSet returns a ggplot object with the imputation set of the game, the core and the most common solutions.

Details

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.

See Also

coopProductGame

Examples

Run this code
# NOT RUN {
# 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)
  
  
# }

Run the code above in your browser using DataLab