nucleolus: Nucleolus solution

Description Usage Arguments Value Author(s) Examples

Description

This function computes the nucleolus solution of a game with a maximum of 4 agents.

Usage

1
nucleolus(game, show.data = FALSE)

Arguments

game

a vector that represents the cooperative game.

show.data

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

Value

nucleolus returns and prints the Nucleolus Solution of associated cooperative game.

Author(s)

D. Prieto

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Cooperative game
game <- c(68, 102, 0, 170, 710, 762, 992)
# Nucleolus solution
nucleolus(game, show.data = TRUE)

 # ------------------------
 # Nucleolus Solution
 # ------------------------
 # [1] "(149, 192, 651)"
  

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