- Procedure GMP::Row::DeactivateRaw(GMP, rowSet)
GMP::Row::DeactivateRaw
The procedure GMP::Row::DeactivateRaw
deactivates a group of rows
in a generated mathematical program.
GMP::Row::DeactivateRaw(
GMP, ! (input) a generated mathematical program
rowSet ! (input) a subset of Integers
)
Arguments
- GMP
An element in
AllGeneratedMathematicalPrograms
.- rowSet
A subset of the set
Integers
, representing a set of row numbers.
Return Value
The procedure returns 1 on success, and 0 otherwise.
Example
Assume that ‘MP’ is a mathematical program. To use
GMP::Row::DeactivateRaw
we declare the following identifiers (in ams format):ElementParameter myGMP { Range: AllGeneratedMathematicalPrograms; } Set ConstraintSet { SubsetOf: AllConstraints; } Set RowSet { SubsetOf: Integers; Index: rr; }To deactivate the constraint
c(i)
we can use:myGMP := GMP::Instance::Generate( MP ); ConstraintSet := { 'c' }; RowSet := GMP::Instance::GetRowNumbers( myGMP, ConstraintSet ); GMP::Row::DeactivateRaw( myGMP, RowSet );
See also
The routines GMP::Instance::Generate
, GMP::Instance::GetRowNumbers
, GMP::Row::ActivateRaw
and GMP::Row::Deactivate
.