get.branch.mode: Get Branch Mode

Description Usage Arguments Value Author(s) References Examples

Description

Retrieve the branch mode for one or more decision variables from an lpSolve linear program model object.

Usage

1
get.branch.mode(lprec, columns = 1:n, as.char = TRUE)

Arguments

lprec

an lpSolve linear program model object.

columns

a numeric vector of unique values from the set {1, ..., n} (where n is the number of decision variables in lprec) specifying for which decision variables the branch modes should be retrieved. If NULL branch modes are retrieved for all the decision variables.

as.char

a logical value. If TRUE the branch mode is returned as a character string, otherwise the integer code used directly in lpSolve is returned.

Value

either a character vector or an integer vector containing the branch modes for the decision variables specified in columns. The possibilities are: 0 = "ceiling", 1 = "floor" and 2 = "auto".

Author(s)

Kjell Konis kjell.konis@me.com

References

http://lpsolve.sourceforge.net/5.5/index.htm

Examples

1
2
lps.model <- make.lp(3, 3)
get.branch.mode(lps.model)

lpSolveAPI documentation built on May 2, 2019, 6:50 p.m.