Previous Page: CPXgetclqcntFirst PageNext Page: CPXgetcolindex

CPXgetcoef


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

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 i
An integer indicating the numerical index of the row.

int j
An integer indicating the numerical index of the column.

double *coef_p
A pointer to a double that will contain the specified matrix coefficient.

Example

status = CPXgetcoef (env, lp, 10, 20, &coef);
Previous Page: CPXgetclqcntFirst PageNext Page: CPXgetcolindex