set.semicont | R Documentation |
Set a decision variable as semicontinuous in an lpSolve linear program model object.
set.semicont(lprec, columns, sc = TRUE)
lprec |
an lpSolve linear program model object. |
columns |
a numeric vector of unique values from the set |
sc |
a logical value. If |
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.
a NULL
value is invisibly returned.
Kjell Konis kjell.konis@me.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.