| Overview | Group | Index | Concepts | 
This is an advanced routine. Advanced routines typically demand a thorough understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other Callable Library routines instead.
The routine CPXgetijdiv returns the index of the diverging
 row (that is, constraint) or column (that is, variable) when one of the ILOG
 CPLEX simplex optimizers terminates due to a diverging vector. This function
 can be called after an unbounded solution status for a primal simplex call
 or after an infeasible solution status for a dual simplex call.
If one of the ILOG CPLEX simplex optimizers 
 has concluded that the LP problem object is unbounded, and if 
 the diverging variable is a slack or ranged variable, 
 CPXgetijdiv returns the index of the corresponding 
 row in *idiv_p. 
 Otherwise, *idiv_p is set to -1.
If one of the ILOG CPLEX simplex optimizers 
 has concluded that the LP problem object is unbounded, 
 and if the diverging variable is a normal, structural variable, 
 CPXgetijdiv sets *jdiv_p to the index 
 of that variable. Otherwise, *jdiv_p is set to 
 -1.
| env | The pointer to the ILOG CPLEX environment, as returned by   | 
| lp | A pointer to the CPLEX LP problem object, as returned by   | 
| idiv_p | A pointer to an integer indexing the row of a diverging variable. If one of the ILOG CPLEX simplex optimizers 
 has concluded that the LP problem object is unbounded, and if 
 the diverging variable is a slack or ranged variable, 
   | 
| jdiv_p | A pointer to an integer indexing the column of a diverging variable. If one of the ILOG CPLEX simplex optimizers 
 has concluded that the LP problem object is unbounded, 
 and if the diverging variable is a normal, structural variable, 
   |