ilog.concert
Interface IloSemiContVar
- public interface IloSemiContVar
- extends IloNumVar
Semi continuous variables.
Objects implementing this interface are used to represent semi-continuous
modeling variables. These are modeling variables with an extra parameter,
the semi-continuous lower bound. Using lb
and ub
for the lower and upper bounds of the variable, and sclb
for its
semi-continuous lower bound, the feasible region for a semi-continuous
variable is:
{lb <= x <= ub: x >= sclb || x == 0}
By default the regular lower bound of a semi-continuous variable is
0
, thus by default the feasible region of a semi-continous
variable is {0, [sclb, ub]}
.
Since IloSemiContVar
is an extension of IloNumVar
,
semi-continuous variables can be used wherever regular variables can be used.
Semi-continuous variables are created using methods
IloMPModeler.semiContVar()
and
IloMPModeler.semiContVarArray()
.
- See Also:
IloMPModeler.semiContVar(double, double, ilog.concert.IloNumVarType)
,
IloMPModeler.semiContVarArray(int, double, double, ilog.concert.IloNumVarType, java.lang.String[])
Method Summary |
double |
getSemiContLB()
Returns the semi-continuous lower bound of the invoking
IloSemiContVar . |
void |
setSemiContLB(double sclb)
Sets the semi-continuous lower bound of the invoking
IloSemiContVar to sclb . |
getSemiContLB
public double getSemiContLB()
throws IloException
- Returns the semi-continuous lower bound of the invoking
IloSemiContVar
.
- Returns:
- The semi-continuous lower bound of the invoking
IloSemiContVar
.
setSemiContLB
public void setSemiContLB(double sclb)
throws IloException
- Sets the semi-continuous lower bound of the invoking
IloSemiContVar
to sclb
.
- Parameters:
sclb
- The new semi-continuous lower bound.