check_optimal_termination

(function from pyomo.opt.results.solver)

pyomo.opt.results.solver.check_optimal_termination(results)[source]

This function returns True if the termination condition for the solver is ‘optimal’, ‘locallyOptimal’, or ‘globallyOptimal’, and the status is ‘ok’

Parameters:

results (Pyomo results object returned from solver.solve)

Return type:

bool