Initializing help system before first use

problem.chgqobj

problem.chgqobj


Purpose
Change a single quadratic coefficient in the objective function corresponding to the variable pair (icol,jcol) of the Hessian matrix.
Synopsis
problem.chgqobj(icol, jcol, dval)
Arguments
icol 
Column index for the first variable in the quadratic term.
jcol 
Column index for the second variable in the quadratic term.
dval 
New value for the coefficient in the quadratic Hessian matrix. If an entry in dval is 0, the corresponding entry will be deleted.
Example
The following code adds the terms [6x12 + 3x1x2 + 3x2x1]/2 to the objective function:
p.chgqobj(x1, x1, 6)
p.chgqobj(x1, x2, 3)
Further information
1. The columns icol and jcol must already exist in the matrix..
2. If icol is not equal to jcol, then both the matrix elements (icol, jcol) and (jcol, icol) are changed to leave the Hessian symmetric.
Related topics