Procedure MatrixRegenerateRow(MP, row)

MatrixRegenerateRow

The procedure MatrixRegenerateRow regenerates the coefficients of a row according to the definition of its associated symbolic constraint in the model.

MatrixRegenerateRow(
     MP,             ! (input) a mathematical program
     row             ! (input) a scalar value
     )

Arguments

MP

A mathematical program that was previously solved. The mathematical program should be a linear or mixed-integer linear programming model.

row

A scalar reference to an existing row name in the model.

Return Value

The procedure returns 1 on success, or 0 otherwise.

Note

  • If the row does not exist yet, it will be automatically added to the matrix before generating its coefficients.

  • Before regenerating the row, the procedure first removes all existing matrix coefficients.

  • This procedure will automatically add columns that are not in the matrix.

  • The row type and the right-hand-side value (and, if the row type is 'ranged', the left-hand-side value) are set according to the constraint definition.

  • As of AIMMS release 3.5, the matrix manipulation procedures have become deprecated. New projects should use the GMP library instead. Please refer to Table 5 for a mapping of the matrix manipulation procedures to corresponding GMP procedures.