Procedure GMP::Solution::Check(GMP, solution, numInfeas, sumInfeas, maxInfeas, skipObj)

GMP::Solution::Check

The procedure GMP::Solution::Check checks the validity of a solution for a generated mathematical program.

GMP::Solution::Check(
     GMP,            ! (input) a generated mathematical program
     solution,       ! (input) a solution
     numInfeas,      ! (output) number of infeasibilities
     sumInfeas,      ! (output) sum of infeasibilities
     maxInfeas,      ! (output) maximum infeasibility
     [skipObj]       ! (optional, default 0) a scalar value
     )

Arguments

GMP
An element in the set AllGeneratedMathematicalPrograms.
solution
An integer scalar reference to a solution.
numInfeas
Number of infeasibilities for the solution.
sumInfeas
Sum of all infeasibilities for the solution.
maxInfeas
Maximum infeasibility for the solution.
skipObj
A scalar binary value to indicate whether constraints containing the objective variable should be skipped (value 1) or not (value 0).

Return Value

The procedure returns 1 on success, or 0 otherwise.

Note

The option Constraint Listing Feasibility Tolerance determines the feasibility tolerance used by this procedure. If a constraint violation is smaller than this tolerance then it will be ignored.