Initializing help system before first use

problem.addqmatrix

problem.addqmatrix


Purpose
Adds a new quadratic matrix into a row defined by triplets.
Synopsis
problem.addqmatrix(irow, mqc1, mqc2, dqe)
Arguments
irow 
Row (i.e. xpress.constraint object, index, or name) where the quadratic matrix is to be added.
mqc1 
Array with first variables (i.e. xpress.varobjects, indices, or names) in the triplets.
mqc2 
Array with second variables (i.e. xpress.varobjects, indices, or names) index in the triplets.
dqe 
Array of coefficients in the triplets.
Further information
1. The triplets should define the upper triangular part of the quadratic expression. This means that to add x2 + 4 xy the dqe array shall contain the coefficients 1 and 2.
2. The matrix defined by mqc1, mqc2 and dqe should be positive semi-definite for ≤ and negative semi-definite for ≥ rows.
3. The row must not be an equality or a ranged row.
Related topics