runBaB: Calling the Branch and Bound Algorithm

Description Usage Arguments Author(s) Examples

View source: R/optStrat.R

Description

runBaB calls the branch and bound algorithm. The branch and bound algorithm is coded in C.

Usage

1
	runBaB(u,q,M,CIDnum)

Arguments

u

A vector of values. Can be obtained through getEbsMargin.

q

A vector of costs. Can be obtained through getQ.

M

The constraint on the values. Can be obtained through getEbsMargin.

CIDnum

A vector that gives the CIDnum identification for each batch. Can be found at Z$V$CIDnum.

Author(s)

Mike Higgins

Examples

1
2
3
4
5
6
7
	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)


elec.strat documentation built on May 19, 2017, 8:26 a.m.
Search within the elec.strat package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.