- Procedure GMP::Row::AddMulti(GMP, binding, row)
GMP::Row::AddMulti
The procedure GMP::Row::AddMulti
adds a group of empty rows, belonging to a constraint,
to the matrix of a generated mathematical program.
GMP::Row::AddMulti(
GMP, ! (input) a generated mathematical program
binding, ! (input) an index binding
row ! (input) a constraint expression
)
Arguments
- GMP
An element in
AllGeneratedMathematicalPrograms
.- binding
An index binding that specifies and possibly limits the scope of indices.
- row
A constraint that, combined with the binding domain, specifies the rows.
Return Value
The procedure returns 1 on success, or 0 otherwise.
Note
Coefficients for the rows can be added to the matrix by using the procedure
GMP::Coefficient::SetMulti
.The procedure
GMP::Row::AddMulti
sets the row type to'<='
and the right-hand-side values toINF
. By using the proceduresGMP::Row::SetTypeMulti
andGMP::Row::SetRightHandSideMulti
the row type and the right-hand-side value can be changed.Use procedure
GMP::Row::GenerateMulti
to generate (non-empty) rows according to the definition of the associated symbolic constraint.