NO FRAMES

CPXgetcoef

int CPXPUBLIC CPXgetcoef(CPXCENVptr env, CPXCLPptr lp, int i, int j, double * coef_p)
Definition file: cplex.h
Include files: cplex.h

The routine CPXgetcoef is used to access a single constraint matrix coefficient of a CPLEX problem object. The row and column indices must be specified.

Example

 status = CPXgetcoef (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.

i

An integer indicating the numeric index of the row.

j

An integer indicating the numeric index of the column.

coef_p

A pointer to a double to contain the specified matrix coefficient.

Returns:

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