Purpose
Returns a single
quadratic objective function coefficient corresponding to the variable pair
(icol, jcol) of the
Hessian matrix.
Synopsis
int XPRS_CC XPRSgetqobj(XPRSprob prob, int icol, int jcol, double *dval);
Arguments
prob
|
The current problem.
|
icol
|
Column index for the first variable in the quadratic term.
|
jcol
|
Column index for the second variable in the quadratic term.
|
dval
|
Pointer to a double value where the objective function coefficient is to be placed.
|
Example
The following returns the coefficient of the x02 term in the objective function, placing it in the variable
value
:
double value;
...
XPRSgetqobj(prob,0,0,&value);
Further information
dval is the coefficient in the quadratic Hessian matrix. For example,
if the objective function has the term [3x1x2 + 3x2x1]/2 the value retrieved by XPRSgetqobj is 3.0
and if the objective function has the term [6x12]/2 the value retrieved by XPRSgetqobj is 6.0.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.