asl_solve_code_to_solution_status

(function from pyomo.contrib.solver.solvers.asl_sol_reader)

pyomo.contrib.solver.solvers.asl_sol_reader.asl_solve_code_to_solution_status(sol_data: ASLSolFileData, result: Results) None[source]

Convert the ASL “solve code” integer into a Pyomo status

The ASL returns an indication of the solution status and termination condition using a single “solve code” integer. This function implements the translation of the numeric value into the Pyomo equivalents (TerminationCondition and SolutionStatus), as well as a general string description, using the table from Section 14.2 in the AMPL Book [FGK02].