set.semicont: Set Semicontinuous

View source: R/set.semicont.R

set.semicontR Documentation

Set Semicontinuous

Description

Set a decision variable as semicontinuous in an lpSolve linear program model object.

Usage

set.semicont(lprec, columns, sc = 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 which variables should be made semicontinuous.

sc

a logical value. If FALSE the decision variables specified in columns will have their kind set to standard.

Details

Decision variables have both a type and a kind. The type is either real or integer and indicates the type of values the decision variable may take. The kind is one of {standard, semi-continuous, SOS}. Semi-continuous decision variables can take allowed values between their upper and lower bound as well as zero. Please see the link in the references for further details.

Value

a NULL value is invisibly returned.

Author(s)

Kjell Konis kjell.konis@me.com

References

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


lpSolveAPI documentation built on Sept. 11, 2024, 9:27 p.m.