NO FRAMES

CPXgetbhead

int CPXPUBLIC CPXgetbhead(CPXCENVptr env, CPXCLPptr lp, int * head, double * x)
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 CPXgetbhead returns the basis header; it gives the negative value minus one of all row indices of slacks.

Parameters:

env

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

lp

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

head

An array. The array contains the indices of the variables in the resident basis, where basic slacks are specified by the negative of the corresponding row index minus 1 (one); that is, -rowindex - 1. The array must be of length at least equal to the number of rows in the LP problem object.

x

An array. This array contains the values of the basic variables in the order specified by head[]. The array must be of length at least equal to number of rows in the LP problem object.

Returns:

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