CPXXgetnumsemicont and CPXgetnumsemicont
The routine CPXXgetnumsemicont/CPXgetnumsemicont accesses the number
of semi-continuous variables in a CPLEX problem object.
CPXDIM CPXXgetnumsemicont( CPXCENVptr env, CPXCLPptr lp )
int CPXgetnumsemicont( CPXCENVptr env, CPXCLPptr lp )
Description
The routine CPXXgetnumsemicont/CPXgetnumsemicont accesses the number
of semi-continuous variables in a CPLEX problem object.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - lp
-
A pointer to a CPLEX problem object as returned by
CPXXcreateprob/CPXcreateprob.
Return
If the problem object or environment does not exist,CPXXgetnumsemicont/CPXgetnumsemicont returns the value 0 (zero); otherwise, it returns the number of semi-continuous variables in the problem object.
Example
numsc = CPXgetnumsemicont (env, lp);