- Procedure MatrixModifyCoefficient(MP, row, column, value)
MatrixModifyCoefficient
The procedure MatrixModifyCoefficient
changes a coefficient in the
matrix. This procedure can also be used to modify a coefficient in the
objective row. The value for the coefficient can be equal to 0.0 prior
to calling this procedure.
MatrixModifyCoefficient(
MP, ! (input) a mathematical program
row, ! (input) a scalar value
column, ! (input) a scalar value
value ! (input) a numerical expression
)
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 in the matrix; this might be the objective row.
- column
A scalar reference to an existing column in the matrix.
- value
The new value that should be assigned to the coefficient corresponding to row and column in the matrix. This value should be unequal to
NA
,INF
,-INF
andUNDF
.
Return Value
The procedure returns 1 on success, and 0 otherwise.
Note
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
Matrix manipulation routines are discussed in more detail in Implementing Advanced Algorithms for Mathematical Programs of the Language Reference.