Procedure GMP::Column::SetType(GMP, column, type)

GMP::Column::SetType

The procedure GMP::Column::SetType changes the type of a column in 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 an element in the set Integers 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 or GMP::Column::SetTypeRaw if the types of many columns have to be set, because that will be more efficient.