Description
The routine CPXgetcoef() is used to access a single constraint matrix coefficient of an LP problem object. The row and column indices must be specified.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXgetcoef (CPXENVptr env,
CPXLPptr lp,
int i,
int j,
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 iAn integer indicating the numerical index of the row.
int jAn integer indicating the numerical index of the column.
double *coef_pA pointer to a double that will contain the specified matrix coefficient.
status = CPXgetcoef (env, lp, 10, 20, &coef);