- Procedure GMP::Row::ActivateRaw(GMP, rowSet)
GMP::Row::ActivateRaw
The procedure GMP::Row::ActivateRaw activates a group of deactivated rows
in a generated mathematical program.
GMP::Row::ActivateRaw(
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::ActivateRaw we declare the following identifiers
(in ams format):
ElementParameter myGMP {
Range: AllGeneratedMathematicalPrograms;
}
Set ConstraintSet {
SubsetOf: AllConstraints;
}
Set RowSet {
SubsetOf: Integers;
Index: rr;
}
To activate the constraint c(i) we can use:
myGMP := GMP::Instance::Generate( MP );
ConstraintSet := { 'c' };
RowSet := GMP::Instance::GetRowNumbers( myGMP, ConstraintSet );
GMP::Row::ActivateRaw( myGMP, RowSet );
See also
The routines
GMP::Instance::Generate,GMP::Instance::GetRowNumbers,GMP::Row::ActivateandGMP::Row::DeactivateRaw.