Function GMP::Solution::GetProgramStatus(GMP, solution)

# GMP::Solution::GetProgramStatus¶

The function GMP::Solution::GetProgramStatus retrieves the program status of a solution in the solution repository of a generated mathematical program.

GMP::Solution::GetProgramStatus(
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¶

An element in the set AllSolutionStates.

Note

The program status is only available if the solution has been retrieved from the solver, or if the procedure GMP::Solution::SetProgramStatus has been called before.