Procedure MatrixAddColumn(MP, column)

MatrixAddColumn

The procedure MatrixAddColumn adds a column to the matrix.

MatrixAddColumn(
     MP,             ! (input) a mathematical program
     column          ! (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.

column

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

Return Value

The procedure returns 1 on success, or 0 otherwise.

Note

  • Coefficients for this column can be added to the matrix by using the procedure MatrixModifyCoefficient. After calling MatrixAddColumn the type and the lower and upper bound of the column are set according to the definition of the corresponding symbolic variable. By using the procedures MatrixModifyColumnType, MatrixModifyLowerBound and MatrixModifyUpperBound the column type and the lower and upper bound can be changed.

  • 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.

See also

The procedures MatrixModifyCoefficient, MatrixModifyColumnType, MatrixModifyLowerBound, MatrixModifyUpperBound. Matrix manipulation routines are discussed in more detail in Implementing Advanced Algorithms for Mathematical Programs of the Language Reference.