powered by
stopOnInvalidCoalitionS checks if coalition S as subset of grand coalition N is specified correctly and causes calculation to stop otherwise.
stopOnInvalidCoalitionS(paramCheckResult, S, N = NULL, n = NULL, v = NULL)
list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message.
numeric vector with coalition of players
represents the grand coalition.
represents the number of players
Numeric vector of length 2^n - 1 representing the values of the coalitions of a TU game with n players
Error codes and messages shown to user if error on parameter check occurs
Other ParameterChecks_CoopGame: getEmptyParamCheckResult(), stopOnInconsistentEstateAndClaimsVector(), stopOnInvalidAllocation(), stopOnInvalidBoolean(), stopOnInvalidClaimsVector(), stopOnInvalidDictator(), stopOnInvalidEstate(), stopOnInvalidGameVector(), stopOnInvalidGrandCoalitionN(), stopOnInvalidIndex(), stopOnInvalidLeftRightGloveGame(), stopOnInvalidNChooseB(), stopOnInvalidNumberOfPlayers(), stopOnInvalidNumber(), stopOnInvalidQuota(), stopOnInvalidVetoPlayer(), stopOnInvalidWeightVector(), stopOnParamCheckError()
getEmptyParamCheckResult()
stopOnInconsistentEstateAndClaimsVector()
stopOnInvalidAllocation()
stopOnInvalidBoolean()
stopOnInvalidClaimsVector()
stopOnInvalidDictator()
stopOnInvalidEstate()
stopOnInvalidGameVector()
stopOnInvalidGrandCoalitionN()
stopOnInvalidIndex()
stopOnInvalidLeftRightGloveGame()
stopOnInvalidNChooseB()
stopOnInvalidNumberOfPlayers()
stopOnInvalidNumber()
stopOnInvalidQuota()
stopOnInvalidVetoPlayer()
stopOnInvalidWeightVector()
stopOnParamCheckError()
# NOT RUN { library(CoopGame) paramCheckResult=getEmptyParamCheckResult() validCoalition = c(1,2,3) stopOnInvalidCoalitionS(paramCheckResult, S=validCoalition, N=c(1,2,3,4,5)) # }
Run the code above in your browser using DataLab