Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXchgqpcoef
changes the coefficient in the
quadratic objective of a quadratic problem (QP) corresponding to the variable
pair (i,j)
to the value newvalue
. If
i
is not equal to j
, both Q(i,j)
and
Q(j,i)
are changed to newvalue
.
Example
status = CPXchgqpcoef (env, lp, 10, 12, 82.5);
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
i | An integer that indicates the first variable number (row number in |
j | An integer that indicates the second variable number (column number in |
newvalue | The new coefficient value. |