Learn R Programming

TUGLab (version 0.0.1)

excesses: Coalition excesses

Description

Given a game and an allocation, this function computes the excess of each coalition.

Usage

excesses(v, binary = FALSE, x)

Value

The excesses of all coalitions, as a vector in binary order if binary=TRUE and in lexicographic order otherwise.

Arguments

v

A characteristic function, as a vector.

binary

A logical value. By default, binary=FALSE. Should be set to TRUE if v is introduced in binary order instead of lexicographic order.

x

An allocation, as a vector.

Details

Given a game \(v\in G^N\) and an allocation \(x\), the excess of coalition \(S \in 2^N\) with respect to \(x\) is defined as \(e(x,S)=v(S)-x(S)\), where \(x(S)=\sum_{i\in S} x_i\).

See Also

nucleolusvalue, nucleoluspcvalue

Examples

Run this code
excesses(v=c(0,0,3,0,3,8,6,0,6,9,15,8,16,17,20), binary=TRUE, x=c(8,7,2,3))
excesses(v=c(1,5,10,6,11,15,16), x=c(1,5,10)) <= 0 # core allocation

Run the code above in your browser using DataLab