Learn R Programming

TUGLab (version 0.0.1)

A Laboratory for TU Games

Description

Cooperative game theory models decision-making situations in which a group of agents, called players, may achieve certain benefits by cooperating to reach an optimal outcome. It has great potential in different fields, since it offers a scenario to analyze and solve problems in which cooperation is essential to achieve a common goal. The 'TUGLab' (Transferable Utility Games Laboratory) R package contains a set of scripts that could serve as a helpful complement to the books and other materials used in courses on cooperative game theory, and also as a practical tool for researchers working in this field. The 'TUGLab' project was born in 2006 trying to highlight the geometrical aspects of the theory of cooperative games for 3 and 4 players. 'TUGlabWeb' is an online platform on which the basic functions of 'TUGLab' are implemented, and it is being used all over the world as a resource in degree, master's and doctoral programs. This package is an extension of the first versions and enables users to work with games in general (computational restrictions aside). The user can check properties of games, compute well-known games and calculate several set-valued and single-valued solutions such as the core, the Shapley value, the nucleolus or the core-center. The package also illustrates how the Shapley value flexibly adapts to various cooperative game settings, including weighted players and coalitions, a priori unions, and restricted communication structures. In keeping with the original philosophy of the first versions, special emphasis is placed on the graphical representation of the solution concepts for 3 and 4 players.

Copy Link

Version

Install

install.packages('TUGLab')

Version

0.0.1

License

GPL-3

Maintainer

Álvaro de Prado Saborido

Last Published

June 10th, 2025

Functions in TUGLab (0.0.1)

coredimension

Core dimension
corecentervalue

Core-center
constantsumgame

Constant sum game
convexcheck

Convex check
corevertices

Core vertices
harsanyidividend

Harsanyi dividend
degeneratecheck

Degenerate check
getpermutationnumber

Get permutation number
marginalvector

Marginal contributions vector
getpermutation

Get permutation
minimalrightsvector

Minimal rights vector
dualgame

Dual game
museumpassgame

Museum pass game
monotoniccheck

Monotonic check
dummynull

Dummy and null players
myersonvalue

Myerson value
normalizedgame

Normalized game
kohlbergcriterion

Kohlberg criterion for the prenucleolus
lex2bin

Lexicographic order to binary order
leastcore

Least core
getcoalition

Get coalition
getcoalitionnumber

Get coalition number
plotcoreset

Plot core set
owenvalue

Owen value
prenucleolusvalue

Prenucleolus
sequencinggame

Sequencing game
perfectcoregame

Perfect core game
nucleoluspcvalue

Per capita nucleolus
nucleolusvalue

Nucleolus
triangularup

Square upper triangulation
totallybalancedcheck

Totally balanced check
tauvalue

\(\tau\)-value
plotcoresets

Plot multiple core sets
tailgame

Tail game
essentialcheck

Essential check
excesses

Coalition excesses
solvels

Solve linear system
marginalgame

Marginal game
weightedmajoritygame

Weighted majority game
weightedshapleyvalue

Positively weighted Shapley value
lorenzdominancerelation

Lorenz dominance relation
zeronormalizedgame

0-normalized game
solidarityvalue

Solidarity value
subgame

Subgame of a coalition
savingsgame

Savings game
utopiapayoffsvector

Utopia payoffs vector
unanimitygame

Unanimity game
strategicallyequivalentcheck

Strategically equivalent check
shapleyvalue

Shapley value
zeromonotoniccheck

0-monotonic check
superadditivecheck

Superadditive check
symmetrycheck

Symmetry check
zeronormalizedcheck

0-normalized check
balancedfamilycheck

Balanced family check
additivegame

Additive game
bin2lex

Binary order to lexicographic order
claimsgame

Pessimistic claims game associated with a claims problem
balancedcheck

Balanced check
codebin2lex

Binary order position to lexicographic order position
coalitionweightedshapleyvalue

Coalition-weighted Shapley value
belong2corecheck

Belong to core
additivecheck

Additive check
airfieldgame

Airfield game
corecenterhitrun

Core-center estimation by hit-and-run
corevertices234

Core vertices of games with two, three or four players
compromiseadmissiblecheck

Compromise-admissible check
codelex2bin

Lexicographic order position to binary order position