Procedure GMP::Instance::SaveState(GMP, state)

GMP::Instance::SaveState

With the procedure GMP::Instance::SaveState you can save the current state of a generated mathematical program. Later on, after manipulating the generated mathematical program, you can restore this state by calling GMP::Instance::RestoreState.

GMP::Instance::SaveState(
     GMP,             ! (input) a generated mathematical program
     state            ! (output) an integer scalar parameter
     )

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

state

On return, contains a positive integer value assigned to the state.

Return Value

The procedure returns 1 on success, or 0 otherwise.

Note

States are numbered from 1 upwards by AIMMS.

See also

The procedure GMP::Instance::RestoreState.