NO FRAMES

CPXgetqpcoef

int CPXPUBLIC CPXgetqpcoef(CPXCENVptr env, CPXCLPptr lp, int rownum, int colnum, double * coef_p)
Definition file: cplex.h
Include files: cplex.h

The routine CPXgetqpcoef accesses the quadratic coefficient in the matrix Q of a CPLEX problem object for the variable pair indexed by (rownum, colnum). The result is stored in *coef_p.

Example

 status = CPXgetqpcoef (env, lp, 10, 20, &coef); 

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

rownum

The first variable number (row number in Q).

colnum

The second variable number (column number in Q).

coef_p

A pointer to a double where the coefficient should be stored.

Returns:

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