Previous Page: CPXchgprobtypeFirst PageNext Page: CPXchgrhs

CPXchgqpcoef


Usage

Barrier Users Only

Description

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

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
First variable number (row number in Q).

int j
Second variable number (column number in Q).

double newvalue
New coefficient value.

Example

status = CPXchgqpcoef (env, lp, 10, 12, 82.5);
Previous Page: CPXchgprobtypeFirst PageNext Page: CPXchgrhs