Originally posted by: SystemAdmin
If you are using simplex for your LP relaxations, and if the number of variables is larger than the number of constraints, then it could be useful to query the LP basis with a call to CPXgetbhead(). This will give you the array of basic variables, which is of size 'rows'. Each non-negative entry in this array corresponds to a structural variable (in contrast to negative entries, which correspond to slack variables of rows). Of course, you still have to check the x value of these basic variables because it can be integral even if the variable is basic. But this allows you to skip over all non-basic variables for which you know the value is integral.
#CPLEXOptimizers#DecisionOptimization