NO FRAMES

CPXgetijdiv

int CPXPUBLIC CPXgetijdiv(CPXCENVptr env, CPXCLPptr lp, int * idiv_p, int * jdiv_p)
Definition file: cplex.h
Include files: cplex.h
Note

This is an advanced routine. Advanced routines typically demand a profound 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.

Parameters:

env

The pointer to the ILOG CPLEX environment, as returned by CPXopenCPLEX.

lp

A pointer to the CPLEX LP problem object, as returned by CPXcreateprob.

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, CPXgetijdiv returns the index of the corresponding row in *idiv_p. Otherwise, *idiv_p is set to -1.

jdiv_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 normal, structural variable, CPXgetijdiv sets *jdiv_p to the index of that variable. Otherwise, *jdiv_p is set to -1.

Returns:

The routine returns zero on success and nonzero if an error occurs.