problem.chgmqobj
| problem.chgmqobj | 
  Purpose
 
 
  Change multiple quadratic coefficients in the objective function. If any of the coefficients does not exist already, new coefficients will be added to the objective function.
 
 
  Synopsis
 
 problem.chgmqobj (mqcol1, mqcol2, dval)
 
  Arguments
 
 | 
     mqcol1 
     | 
     Array containing the column index of the first variable in each quadratic term.
     | 
| 
     mqcol2 
     | 
     Array containing the column index of the second variable in each quadratic term.
     | 
| 
     dval 
     | 
     New values for the coefficients. If an entry in
     dval is
     0, the corresponding entry will be deleted. These are the coefficients of the lower triangular part of the Hessian of the objective function.
     | 
  Example
 
 
 The following code results in an objective function with terms:
 [4x12 + 6x1x2
 
 p.chgmqobj ([x1,x1], [x1,x2], [4,3])
  Further information
 
 
 1. The columns in the arrays
 mqcol1 and
 mqcol2 must already exist in the matrix. If the columns do not exist, they must be added.
 
 
 2.
 chgmqobj is more efficient than repeated calls to
 problem.chgqobj and should be used in its place when several coefficients are to be changed.
 
 
  Related topics
 
  
