- Procedure GMP::Column::Unfreeze(GMP, column)
GMP::Column::Unfreeze
The procedure GMP::Column::Unfreeze
removes the frozen status of a
column in a generated mathematical program.
GMP::Column::Unfreeze(
GMP, ! (input) a generated mathematical program
column ! (input) a scalar reference or column number
)
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.
Return Value
The procedure returns 1 on success, and 0 otherwise.
Note
Use
GMP::Column::UnfreezeMulti
orGMP::Column::UnfreezeRaw
if many columns have to be unfrozen, because that will be more efficient.During a call to procedure
GMP::Column::Freeze
AIMMS stores the upper and lower bound of the column before the procedure was called. This information is used when procedureGMP::Column::Unfreeze
is called thereafter. This information is not copied by the functionGMP::Instance::Copy
. Therefore the call toGMP::Column::Unfreeze
in the following piece of code is useless:GMP::Column::Freeze( gmp1, x1, 20 ); gmp2 := GMP::Instance::Copy( gmp1, "cpy" ); GMP::Column::Unfreeze( gmp2, x1 );
See also
The routines GMP::Instance::Generate
, GMP::Column::UnfreezeMulti
, GMP::Column::UnfreezeRaw
, GMP::Column::Freeze
and GMP::Instance::Copy
.