
This function checks if the given game is 0-monotonic.
zeromonotoniccheck(v, binary = FALSE, instance = FALSE)
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.
A characteristic function, as a vector.
A logical value. By default, binary=FALSE
. Should be set to TRUE
if v
is introduced in binary order instead of lexicographic order.
A logical value. By default, instance=FALSE
.
A game
monotoniccheck, zeronormalizedgame, zeronormalizedcheck
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