50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

TUGLab (version 0.0.1)

zeromonotoniccheck: 0-monotonic check

Description

This function checks if the given game is 0-monotonic.

Usage

zeromonotoniccheck(v, binary = FALSE, instance = FALSE)

Value

TRUE if the game is 0-monotonic, FALSE otherwise. If instance=TRUE and the game is not 0-monotonic, the function also returns the positions (binary order positions if binary=TRUE; lexicographic order positions otherwise) of a pair of coalitions violating 0-monotonicity.

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.

instance

A logical value. By default, instance=FALSE.

Details

A game vGN is 0-monotonic if v0(S)v0(T) for all S,T2N such that ST, being v0GN the 0-normalization of v.

See Also

monotoniccheck, zeronormalizedgame, zeronormalizedcheck

Examples

Run this code
v <- c(0, 0, 0, 1, 1, 1, 2)
zeromonotoniccheck(v, binary = TRUE)
monotoniccheck(v, binary = TRUE)

w <- c(-2,-2,-2,7,7,7,6)
zeromonotoniccheck(w)
monotoniccheck(w)

z <- c(1, 1, 1, 2, 2, 2, 2)
zeromonotoniccheck(z)
monotoniccheck(z)

Run the code above in your browser using DataLab