-
Procedure
GMP::Column::
SetType
(GMP, column, type)¶
GMP::Column::SetType¶
The procedure GMP::Column::SetType
changes the type of a column in
the matrix of a generated mathematical program.
GMP::Column::SetType(
GMP, ! (input) a generated mathematical program
column, ! (input) a scalar reference or column number
type ! (input) an element in AllColumnTypes
)
Arguments¶
- GMP
An element in
AllGeneratedMathematicalPrograms
.- column
A scalar reference to an existing column in the matrix or the number of that column in the range \(\{ 0 .. n-1 \}\) where \(n\) is the number of columns in the matrix.
- type
An element in
AllColumnTypes
.
Return Value¶
The procedure returns 1 on success, or 0 otherwise.
Note
Use GMP::Column::SetTypeMulti
if the type of many columns
corresponding to some variable have to be set, because that will be more efficient.
See also
The functions GMP::Instance::Generate
, GMP::Column::GetType
and GMP::Column::SetTypeMulti
.