Procedure GMP::Column::Add(GMP, column)

# GMP::Column::Add¶

The procedure GMP::Column::Add adds a column to the matrix of a generated mathematical program.

GMP::Column::Add(
GMP,            ! (input) a generated mathematical program
column          ! (input) a scalar reference
)

## Arguments¶

GMP

An element in AllGeneratedMathematicalPrograms.

column

A scalar reference to a column.

## Return Value¶

The procedure returns 1 on success, or 0 otherwise.

Note

• Use GMP::Column::AddMulti if many columns corresponding to some variable have to be added, because that will be more efficient.

• Coefficients for this column can be added to the matrix by using the procedure GMP::Coefficient::Set. After calling GMP::Column::Add the type and the lower and upper bound of the column are set according to the definition of the corresponding symbolic variable. By using the procedures GMP::Column::SetType, GMP::Column::SetLowerBound and GMP::Column::SetUpperBound the column type and the lower and upper bound can be changed.