plotCoreSet: Plot Core Set for cooperative production linear games.

Description Usage Arguments Details Value Author(s) See Also Examples

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

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

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.

Value

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

Author(s)

D. Prieto

See Also

coopProductGame

Examples

 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)
  
  

coopProductGame documentation built on May 1, 2019, 10:32 p.m.