Usage
Barrier Users OnlyDescription
This routine accesses the quadratic coefficient in the matrix Q of a CPLEX LP problem object for the variable pair indexed by (rownum, colnum). The result is stored in *coef_p. Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXgetqpcoef (CPXENVptr env,
CPXLPptr lp,
int rownum,
int colnum,
double *coef_p);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
int rownumThe first variable number (row number in Q).
int colnumThe second variable number (column number in Q).
double *coef_pA pointer to a double where the coefficient should be stored.
status = CPXgetqpcoef (env, lp, 10, 20, &coef);