Learn R Programming

coopProductGame (version 2.0)

owenSet: Owen Set

Description

This function computes the Owen Set of a linear production game

Usage

owenSet(c, A, B, show.data = FALSE)

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.

show.data

logical value indicating if the function displays the console output (TRUE) or not (FALSE). By default the value is FALSE.

Value

owenSet returns and prints the owen Set of associated linear production problem.

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
owenSet(c, A, B, show.data = TRUE)

 # ------------------------------------------------------------------------
 # The linear production problem has a unique Owen's allocation:
 # ------------------------------------------------------------------------
 # [1] "(230, 282, 480)"
  
# }

Run the code above in your browser using DataLab