|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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().
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 |
public double getSemiContLB()
throws IloException
IloSemiContVar.
IloSemiContVar.
IloException
public void setSemiContLB(double sclb)
throws IloException
IloSemiContVar to sclb.
sclb - The new semi-continuous lower bound.
IloException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||