- Function MatrixModifyRightHandSide(MP, row, value)
MatrixModifyRightHandSide
The procedure MatrixModifyRightHandSide changes the right-hand-side
of a row in the matrix.
MatrixModifyRightHandSide(
MP, ! (input) a mathematical program
row, ! (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 can not be the objective row.
- value
The new value that should be assigned to the right-hand-side of the row. This value should be unequal to
NAandUNDF(but might beINFor-INF).
Note
If you assign INF to the right-hand-side value of a row with type
'=',MatrixModifyRightHandSidewill not produce an error, since you might want to change the type of this row into'<='(usingMatrixModifyRowType) immediately thereafter.After a call to
MatrixSolveAIMMS checks for each modified row whether or not the right-hand-side value is valid for the current row type. If the row type is'='then the right-hand-side value should be unequal toINFand-INF; if the row type is'<='or'ranged'then it should be unequal to-INF.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 MatrixModifyLeftHandSide, MatrixModifyRowType, MatrixSolve. Matrix manipulation
routines are discussed in more detail in Implementing Advanced Algorithms for Mathematical Programs of the Language
Reference.