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

# GMP::Solution::GetSolverStatus¶

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

GMP::Solution::GetSolverStatus(
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 solver status is only available if the solution has been retrieved from the solver, or if the procedure GMP::Solution::SetSolverStatus has been called before.