> Discrete Optimization > Solving Mixed Integer Programming Problems (MIP) > Using Semi-Continuous Variables

Semi-continuous variables are variables that may take either the value 0 (zero) or a value within a finite range [a, b]. Semi-continuous variables can be specified in MPS and LP files. Stating a MIP Problem tells you how to specify variables as semi-continuous.

In the Callable Library, semi-continuous variables can be entered with type CPX_SEMICONT or CPX_SEMIINT via the routine CPXcopyctype. In that case, the lower bound of 0 (zero) is implied; the semi-continuous lower bound is defined by the corresponding entry in the array of lower bounds; and likewise, the semi-continuous upper bound is defined by the corresponding entry in the array of upper bounds of the problem.

In Concert Technology, semi-continuous variables are instances of the class IloSemiContVar. For a Concert Technology example using semi-continuous variables, see also Rates: Using Semi-Continuous Variables in this manual.