Procedure GMP::Column::AddMulti(GMP, binding, column)

GMP::Column::AddMulti

The procedure GMP::Column::AddMulti adds a group of columns, belonging to a variable, to a generated mathematical program.

GMP::Column::AddMulti(
     GMP,            ! (input) a generated mathematical program
     binding,        ! (input) an index binding
     column          ! (input) a variable expression
     )

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

binding

An index binding that specifies and possibly limits the scope of indices.

column

A variable that, combined with the binding domain, specifies the columns.

Return Value

The procedure returns 1 on success, or 0 otherwise.

Note

Coefficients for these columns can be added to the matrix by using the procedure GMP::Coefficient::Set. After calling GMP::Column::AddMulti the type and the lower and upper bound of the columns 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 types and the lower and upper bounds can be changed.