Previous Page: CPXgetprobtypeFirst PageNext Page: CPXgetrhs

CPXgetqpcoef


Usage

Barrier Users Only

Description

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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

int rownum
The first variable number (row number in Q).

int colnum
The second variable number (column number in Q).

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

Example

status = CPXgetqpcoef (env, lp, 10, 20, &coef); 
Previous Page: CPXgetprobtypeFirst PageNext Page: CPXgetrhs