Procedure GMP::Row::SetType(GMP, row, type)

# GMP::Row::SetType

The procedure GMP::Row::SetType changes the type of a row in a generated mathematical program.

GMP::Row::SetType(
GMP,            ! (input) a generated mathematical program
row,            ! (input) a scalar reference or row number
type            ! (input) an element in AllRowTypes
)


## Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

row

A scalar reference to an existing row in the matrix or an element in the set Integers in the range $$\{ 0 .. m-1 \}$$ where $$m$$ is the number of rows in the matrix.

type

An element in AllRowTypes.

## Return Value

The procedure returns 1 on success, or 0 otherwise.

Note

Use GMP::Row::SetTypeMulti or GMP::Row::SetTypeRaw if the types of many rows have to be changed, because that will be more efficient.