Nothing
isinthecore <-
function(characteristic_function,allocation,game=c("profit","cost")){
cS<-characteristic_function
if (game=="profit"){cS<-cS*(-1)}
n<-log(length(cS),2)
if (n!=round(n)){
cS<-c(0,cS)
n<-log(length(cS),2)
}
coa<-coalitions(n)[[1]]
count<-0
for (i in 1:(2^n-1)){
if(sum(allocation[which(coa[i+1,]==1)])<=cS[i+1]){
count<-count+1
} else {
print ("The allocation is not in the core")
}
}
if (count==(2^n-1)){print ("The allocation is in the core")}
return()}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.