check_optimal_termination

(function from pyomo.contrib.solver.util)

pyomo.contrib.solver.util.check_optimal_termination(results)[source]

This function returns True if the termination condition for the solver is ‘optimal’.

Parameters:

results (Pyomo Results object returned from solver.solve)

Return type:

bool