ilog.concert
Interface IloSemiContVar

All Superinterfaces:
IloNumExpr, IloNumVar

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 for the lower bound, ub for the upper bound, and sclb for the semi-continuous lower bound of the variable, 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 the feasible region of a semi-continous variable is {0, [sclb, ub]} by default.

As 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.
 
Methods inherited from interface ilog.concert.IloNumVar
getLB, getName, getType, getUB, setLB, setName, setUB
 

Method Detail

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.
IloException

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.
IloException