Procedure GMP::Solution::SetProgramStatus(GMP, solution, status)

GMP::Solution::SetProgramStatus

The procedure GMP::Solution::SetProgramStatus sets the program status of a solution in the solution repository of a generated mathematical program.

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

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

solution

An integer scalar reference to a solution.

status

An element in the set AllSolutionStates.

Return Value

The procedure returns 1 on success, or 0 otherwise.