Usage
Barrier Users OnlyDescription
This routine changes the coefficient in the Q matrix of a quadratic problem corresponding to the variable pair (i,j) of the value newvalue. Note that if i is not equal to j, then both Q(i,j) and Q(j,i) are changed to newvalue.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXchgqpcoef (CPXENVptr env,
CPXLPptr lp,
int i,
int j,
double newvalue);
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 iFirst variable number (row number in
Q).
int jSecond variable number (column number in
Q).
double newvalueNew coefficient value.
status = CPXchgqpcoef (env, lp, 10, 12, 82.5);