runBaB {elec.strat} | R Documentation |
runBaB
calls the branch and bound algorithm.
The branch and bound algorithm is coded in C
.
runBaB(u,q,M,CIDnum)
u |
A vector of values. Can be obtained through |
q |
A vector of costs. Can be obtained through |
M |
The constraint on the values.
Can be obtained through |
CIDnum |
A vector that gives the CIDnum identification for each batch.
Can be found at |
Mike Higgins
data(MN_Senate_2006) M.u <- getEbsMargin(MN_Senate_2006.strat, t=2, asNumber = TRUE) u <- M.u$u M <- M.u$M q <- getQ(MN_Senate_2006.strat) CIDnum <- MN_Senate_2006.strat$V$CIDnum runBaB(u,q,M,CIDnum)