# NOT RUN {
w <- c(0.31, 0.33, 0.36)
G <- matrix(c(0,0.4,0.6, 0.7,0,0.3, 0.5,0.5,0),nrow=3,byrow=TRUE)
checkConditionW(w=w,G=G)
w <- c(0.5,0.5,0)
G <- matrix(c(0,1,0, 0.25,0,0.75, 1,0,0), nrow=3, byrow=TRUE)
checkConditionW(w=w,G=G)
# }
Run the code above in your browser using DataLab