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 
Index of the row where the quadratic matrix is to be added.
mqc1 
First index in the triplets.
mqc2 
Second index in the triplets.
dqe 
Coefficients in the triplets.
Further information
1. The triplets should define the whole quadratic expression. This means that to add x2 + 4 xy the dqe arrays shall contain the coefficients 1 and 4.
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