Procedure GMP::Solution::RetrieveFromModel(GMP, solution)

# GMP::Solution::RetrieveFromModel¶

The procedure GMP::Solution::RetrieveFromModel stores the solution from the model identifiers into the solution repository of a generated mathematical program.

GMP::Solution::RetrieveFromModel(
GMP,            ! (input) a generated mathematical program
solution        ! (input) a solution
)


## Arguments¶

GMP

An element in AllGeneratedMathematicalPrograms.

solution

An integer scalar reference to a solution.

## Return Value¶

The procedure returns 1 on success, or 0 otherwise.

Note

A solution vector in the solution repository only contains solution data for the generated columns and rows of the GMP. Hence, no solution data is stored in the solution repository for columns and rows that were not generated.