int CPXgetgrad (CPXCENVptr env, CPXCLPptr lp, int j, int *head, double *y); |
The pointer to the CPLEX environment as returned by CPXopenCPLEX()
.
A pointer to a CPLEX problem object as returned by CPXcreateprob()
.
An array to contain a listing of the indices of the basic variables in the order in which they appear in the basis. This listing is sometimes called the basis header. The i
th entry in this list is also sometimes viewed as the variable in the i
th row of the basis. If the i
th basic variable is a structural variable, head[i]
simply contains the column index of that variable. If it is a slack variable, head[i]
contains one less than the negative of the row index of that slack variable. This array should be of length at least CPXgetnumrows(env,lp)
. May be NULL.
status = CPXgetgrad (env, lp, 13, head, y); |